</span> <span class="bp">self</span><span class="o">.</span><span class="n">resume</span><span class="p">:</span>
                <span class="n">optimizer</span><span class="o">.</span><span class="n">load_state_dict</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">resume</span><span class="p">[</span><span class="s1">&#39;optimizer&#39;</span><span class="p">])</span>
            <span class="k">if</span> <span class="s1">&#39;scheduler&#39;</span> <span cl