an class="n">MODEL</span><span class="o">.</span><span class="n">test</span><span class="p">(</span><span class="n">train_net</span><span class="p">,</span> <span class="n">device</span><span class="p">,</span> <span class="n">test_loader</span><span class="p">)</span>

        <span class="k">if</span> <span class="p">(</span><span class="n">save_model</span> <span class="ow">and</span> <span class="p">(</span><span class="n">epoch</span> <span class="o">%</span> <span class="p">(</span><span class="n">sav