ation">
<h2>Avoid recompilation by specifying dynamic shapes before Torch-TRT compilation<a class="headerlink" href="#avoid-recompilation-by-specifying-dynamic-shapes-before-torch-trt-compilation" title="Permalink to this heading">¶</a></h2>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># The following code illustrates the workflow using ir=torch_compile (which uses torch.compile under the hood)</span>
<span class="n">inputs_bs8</span> <span class="o">=