></span><span class="t">        <span class="nam">loss</span> <span class="op">=</span> <span class="nam">torch</span><span class="op">.</span><span class="nam">mul</span><span class="op">(</span><span class="nam">losses</span><span class="op">,</span> <span class="nam">batch_weight</span><span class="op">)</span><span class="op">.</span><span class="nam">sum</span><span class="op">(</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
    <p class="run"><span class="n"><a id="t29" href="