vectors</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">validation_dataset</span><span class="p">)</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">target_gradient</span> <span class="o">=</span> <span class="n">hypothesized_gradients</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">dim</span><span class="o">=</spa