de</span>

    <span class="c1"># Set new mode for C++</span>
    <span class="k">if</span> <span class="n">find_spec</span><span class="p">(</span><span class="s2">&quot;torch_tensorrt._C&quot;</span><span class="p">)</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
        <span class="n">torch</span><span class="o">.</span><span class="n">ops</span><span class="o">.</span><span class="n">tensorrt</span><span class="o">.</span><span class="