Skip to content

Commit

Permalink
[tune] missing torch.load in mnist_pytorch_trainable.py (#5103)
Browse files Browse the repository at this point in the history
  • Loading branch information
haje01 authored and richardliaw committed Jul 6, 2019
1 parent c5253cc commit 4b56a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ray/tune/examples/mnist_pytorch_trainable.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _save(self, checkpoint_dir):
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__":
Expand Down

0 comments on commit 4b56a5e

Please sign in to comment.