Skip to content

Commit

Permalink
adding missing field (facebookresearch#162)
Browse files Browse the repository at this point in the history
"total_loss" was not saved
  • Loading branch information
dkorchevgithub authored Feb 26, 2021
1 parent 1302c71 commit d25bbc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dlrm_s_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,7 @@ def run():
model_metrics_dict["epoch"] = k
model_metrics_dict["iter"] = j + 1
model_metrics_dict["train_loss"] = train_loss
model_metrics_dict["total_loss"] = total_loss
model_metrics_dict[
"opt_state_dict"
] = optimizer.state_dict()
Expand Down

0 comments on commit d25bbc2

Please sign in to comment.