mirror of
https://github.com/yunjey/pytorch-tutorial.git
synced 2025-07-28 04:23:18 +08:00
model serialization code changed
This commit is contained in:
@ -93,4 +93,4 @@ for images, labels in test_loader:
|
||||
print('Test Accuracy of the model on the 10000 test images: %d %%' % (100 * correct / total))
|
||||
|
||||
# Save the Model
|
||||
torch.save(rnn, 'rnn.pkl')
|
||||
torch.save(rnn.state_dict(), 'rnn.pkl')
|
Reference in New Issue
Block a user