We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acad84c commit 523d1e7Copy full SHA for 523d1e7
py/lib/utils/file.py
@@ -73,7 +73,7 @@ def parse_location_xml(xml_path):
73
74
75
def save_model(model, model_save_path):
76
- torch.save(model.state_dict(), model_save_path)
+ torch.save(model.state_dict().cpu(), model_save_path)
77
78
79
def save_checkpoint(model_save_path, epoch, model, optimizer, loss):
0 commit comments