You have to do something like this:
Save:
torch.save(model.state_dict(), PATH)
Load:
model = TheModelClass(*args, **kwargs)
model.load_state_dict(torch.load(PATH))
model.eval()
For more information: https://pytorch.org/tutorials/beginner/saving_loading_models.html 286