Skip to content

Commit

Permalink
bugfix of optimizer resume (PaddlePaddle#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoxiaWang authored Oct 14, 2022
1 parent e30861d commit 5202eaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plsc/optimizer/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ def cast(param, value):
for k, v in state_dict['state'].items():
if k in param_name_map:
param = param_name_map[k]
state[param] = cast(param, v)
# TODO(GuoxiaWang): fix type cast
# state[k] = cast(param, v)
state[k] = v
else:
state[k] = v

Expand Down

0 comments on commit 5202eaf

Please sign in to comment.