If you already have a pre-trained torchscript model (.pth file), you don’t need to use torchvision to load it. In the tutorial, we use torchvision to get the model so you can skip this step as you already have the model.
You can follow the rest of the tutorial steps to load the model and pass in the inputs based on what it expects. See link below for more information -

  
      
      pytorch.org
  
  
    

PyTorch 192

An open source deep learning platform that provides a seamless path from research prototyping to production deployment.