n 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>
</pre></div>
</div>
<p>There are reasons to use one path or another, the PyTorch documentation has information on how to choose. From a Torch-TensorRT prespective, there is
better support (i.e your module is more likely to compile) for traced modules because it doesn’t include all the complexities of a complete
programming language, though both paths suppo