an class="pre">TensorRTCompileSpec</span></code> API.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">spec</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s2">&quot;forward&quot;</span><span class="p">:</span> <span class="n">torch_tensorrt</span><span class="o">.</span><span class="n">ts</span><span class="o">.</span><span class="n">TensorRTCompileSpec</span><span class="p">(</span>
        <span class="p">{</span>
           