model load checkpoint pytorch
# Additional information
EPOCH = 5
PATH = "model.pt"
LOSS = 0.4
##this is how you save model checkpoint
torch.save({
'epoch': EPOCH,
'model_state_dict': net.state_dict(),
'optimizer_state_dict': optimizer.state_dict(),
'loss': LOSS,
}, PATH)