class="p">()</span>
<span class="n">script_model</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">jit</span><span class="o">.</span><span class="n">script</span><span class="p">(</span><span class="n">model</span><span class="p">)</span>
<span class="n">script_model</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="s2">&quot;lenet_scripted.ts&quot;</span><span class="p">)</span>
</pre></div>
</div>
</section>


  