SyntaxFix
Write A Post
Hire A Developer
Questions
A common PyTorch convention is to save models using either a .pt or .pth file extension.
Save/Load Entire Model Save:
path = "username/directory/lstmmodelgpu.pth" torch.save(trainer, path)
Load:
model = torch.load(PATH) model.eval()