mirror of
https://github.com/wassname/ray.git
synced 2026-07-08 03:30:19 +08:00
[tune] missing torch.load in mnist_pytorch_trainable.py (#5103)
This commit is contained in:
committed by
Richard Liaw
parent
c5253cc300
commit
4b56a5eb27
@@ -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