ass="nb">max</span><span class="o">=</span><span class="mi">16</span><span class="p">)</span>
<span class="n">optimized_model</span> <span class="o">=</span> <span class="n">torch_tensorrt</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span>
    <span class="n">model</span><span class="p">,</span>
    <span class="n">ir</span><span class="o">=</span><span class="s2">&quot;torch_compile&quot;</span><span class="p">,</span>
    <span class="n">inputs</span><span class="o">=</sp