k">
<h1>Saving TorchScript Module to Disk<a class="headerlink" href="#saving-torchscript-module-to-disk" title="Permalink to this heading">¶</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="w"> </span><span class="nn">torch</span>

<span class="n">model</span> <span class="o">=</span> <span class="n">LeNet</span><span 