ape</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="n">param_dim</span><span class="p">)</span>
    <span class="k">else</span><span class="p">:</span>
        <span class="c1"># so that when sliced it is still 2-dimensional</span>
        <span class="n">parameters</span> <span class="o">=</span> <span class="n">parameters</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="o">-</span><span cla