Revised saving
This commit is contained in:
@@ -525,7 +525,12 @@ class ComprehensiveTestSuite:
|
||||
|
||||
# Test saving
|
||||
state_dict = {
|
||||
'model_state_dict': torch.randn(10, 10),
|
||||
'model_state_dict': {
|
||||
'layer1.weight': torch.randn(10, 5),
|
||||
'layer1.bias': torch.randn(10),
|
||||
'layer2.weight': torch.randn(3, 10),
|
||||
'layer2.bias': torch.randn(3)
|
||||
},
|
||||
'optimizer_state_dict': {'lr': 0.001},
|
||||
'step': 100
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user