Skip to content

Commit

Permalink
from #928
Browse files Browse the repository at this point in the history
  • Loading branch information
HaokunLiu committed Oct 8, 2019
1 parent c87598f commit 7f4c3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jiant/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ def _restore_checkpoint(self, phase, tasks=None):
self._serialization_dir, task_directory, "_".join(["metric", suffix])
)

model_state = torch.load(model_path, map_location=device_mapping(self._cuda_device))
model_state = torch.load(model_path)

for name, param in self._model.named_parameters():
if param.requires_grad and name not in model_state:
Expand Down

0 comments on commit 7f4c3c0

Please sign in to comment.