p">.</span><span class="nam">compute_loss</span><span class="op">(</span><span class="nam">pred</span><span class="op">,</span> <span class="nam">gt</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
    <p class="run"><span class="n"><a id="t27" href="#t27">27</a></span><span class="t">        <span class="nam">self</span><span class="op">.</span><span class="nam">record</span><span class="op">.</span><span class="nam">append</span><span class="op">(</span><span class="nam">loss</span>