class="n">torch</span><span class="o">.</span><span class="n">half</span><span class="p">}</span>
<span class="p">}</span>

<span class="n">trt_mod</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="bp">self</span><span class="o">.</span><span class="n">scripted_model</span><span class="p">,</span> <span class="n">compile_spec</span><span class="p">)</span>
</pre>
        </div>
       </div>
      <