diff --git a/python/ray/tune/examples/mnist_pytorch_trainable.py b/python/ray/tune/examples/mnist_pytorch_trainable.py index 741c5ef8c..7d92ba1c5 100644 --- a/python/ray/tune/examples/mnist_pytorch_trainable.py +++ b/python/ray/tune/examples/mnist_pytorch_trainable.py @@ -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__":