Skip to content

Commit

Permalink
Lightning-AI#515 Add on_gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamgonfly committed Nov 18, 2019
1 parent 70cbd8c commit 3477108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/trainer_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def restore_weights(self, model):

if not did_restore_hpc_weights:
if self.resume_from_checkpoint is not None:
self.restore(self.resume_from_checkpoint)
self.restore(self.resume_from_checkpoint, on_gpu=self.on_gpu)
else:
# restore weights if same exp version
self.restore_state_if_checkpoint_exists(model)
Expand Down

0 comments on commit 3477108

Please sign in to comment.