om here are two pathways for going from PyTorch Python code to TorchScript code: Tracing and Scripting.
       </p>
       <p>
        Tracing follows the path of execution when the module is called and records what happens.
To trace an instance of our LeNet module, we can call
        <code class="docutils literal notranslate">
         <span class="pre">
          torch.jit.trace
         </span>
        </code>
        with an example input.
       </p>
       <div class="highlight-python notranslate">
 