mirror of
https://github.com/wassname/ray.git
synced 2026-10-28 13:21:06 +08:00
[tune] missing torch.load in mnist_pytorch_trainable.py (#5103)
This commit is contained in:
1 parent
c5253cc300
commit
4b56a5eb27
1 file changed
+1
-1
@@ -167,7 +167,7 @@ class TrainMNIST(Trainable):
|
||||
return checkpoint_path
|
||||
|
||||
def _restore(self, checkpoint_path):
|
||||
self.model.load_state_dict(checkpoint_path)
|
||||
self.model.load_state_dict(torch.load(checkpoint_path))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user