Where is the network here ?
I see only the weights stored in model.
You need to load your network with the model.
Typically, it goes this way,
#simple initialisation of your network. net = MyNet() #loading the pertained weights. weights= torch.load("*.pth*) #placing the weights inside your network. net.load_state_dict(weights) #using your pretrained network. outputs = net(input) 
In your case, there’s no network defined.