Hi,
I think I was not clear. No you dont need to use the model path in model.
You must have defined model somewhere. Use that. For perspective, it should look something like this:
model=nn.Sequential(
                     nn.Conv2d(...),
                     nn.BatchNorm(..),
                     nn.ReLU()
                     ...
                    )

or something like this
class Net(nn.Module):
    
    def __init__(self):
        super(Net, self).__init__()

        self.layer1=nn.Linear(...)
        self.activate=nn.ReLU()

    def forward(self,x):
        return self.activate(self.layer1(x))

if __name__=='__main__':
    model=Net()

Or maybe if you are using models saved in torchvision, something like:
import torchvision.models as M
model=M.mobilenet_v2()

It is not the saved model, but a version of the model which has just been initialized. This is needed as only the weights of the model are saved and in order to restore the model, the actual model skeleton is needed.