y" id="pytorch-article" class="pytorch-article">
              
  <section id="using-torch-tensorrt-in-python">
<span id="getting-started-with-python-api"></span><h1>Using Torch-TensorRT in Python<a class="headerlink" href="#using-torch-tensorrt-in-python" title="Permalink to this headline">¶</a></h1>
<p>The Torch-TensorRT Python API supports a number of unique usecases compared to the CLI and C++ APIs which solely support TorchScript compilation.</p>
<p>Torch-TensorRT Python API can accept a <code class="