n class="c1"># dynamic shapes for any inputs are specified using torch_tensorrt.Input API</span>
<span class="n">compile_spec</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s2">&quot;inputs&quot;</span><span class="p">:</span> <span class="p">[</span>
        <span class="n">torch_tensorrt</span><span class="o">.</span><span class="n">Input</span><span class="p">(</span>
            <span class="n">min_shape</span><span class="o">=</span><span class="p">(</span><span class="mi">1<