          <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="p">,</span> <span class="n">resume</span><span class="p">[</span><span class="s1">&#39;state_dict&#39;</span><span class="p">],</span> <span class="s1">&#39;model&#39;</span><span class="p">)</span>
            <span class="k">if</span> <span class="s1">&#39;epoch&#39;</span> <span class="ow">in</span> <span class="n">resume</span><span class="p">:</span>
                <span class="bp">self</span><span c