r</span><span class="o">&amp;</span> <span class="n">images</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>

    <span class="c1">// Returns all targets stacked into a single tensor</span>
    <span class="k">const</span> <span class="n">torch</span><span class="o">::</span><span class="n">Tensor</span><span class="o">&amp;</span> <span class="n">targets</span><span class="p">()</span> <span class="k">const</span><span class="p">;</span>

    <span class="c1">// Trims th