tle="Permalink to this heading">¶</a></h1>
<p>This interactive script is intended as a sample of the Torch-TensorRT workflow with <cite>torch.compile</cite> on a ResNet model.</p>
<section id="imports-and-model-definition">
<h2>Imports and Model Definition<a class="headerlink" href="#imports-and-model-definition" title="Permalink to this heading">¶</a></h2>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="