: __torch__.LeNetClassifier = prim::GetAttr[name=&quot;classifier&quot;](%self)
    %x.5 : Tensor = prim::CallMethod[name=&quot;forward&quot;](%5, %x.3) # x.py:39:12
    return (%x.5)
</pre></div>
</div>
<p>You can see that the IR preserves the module structure we have in our python code.</p>
</section>
<section id="working-with-torchscript-in-python">
<span id="ts-in-py"></span><h1>Working with TorchScript in Python<a class="headerlink" href="#working-with-torchscript-in-python" title="Permalink to this he