        </a>
       </h1>
       <p>
        For either traced or scripted modules, you can save the module to disk with the following command
       </p>
       <div class="highlight-python notranslate">
        <div class="highlight">
         <pre><span></span><span class="kn">import</span> <span class="nn">torch</span>

<span class="n">model</span> <span class="o">=</span> <span class="n">LeNet</span><span class="p">()</span>
<span class="n">script_model</span> <span class="o">=</span> <span class="n">t