an>
            <span class="kn">from</span> <span class="nn">torch_tensorrt._TRTModuleNext</span> <span class="kn">import</span> <span class="n">TRTModuleNext</span>

            <span class="k">with</span> <span class="n">io</span><span class="o">.</span><span class="n">BytesIO</span><span class="p">()</span> <span class="k">as</span> <span class="n">engine_bytes</span><span class="p">:</span>
                <span class="n">engine_bytes</span><span class="o">.</span><span class="n">write</span><span clas