Skip to content

Commit

Permalink
fix merged_momentum regular bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo9674 committed Dec 22, 2021
1 parent fabc058 commit 151c2ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/optimizer/momentum.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def _multi_tensor_init(self, target_block, parameters):
if isinstance(param.regularizer, L2DecayRegularizer):
regularization_method = "l2_decay"
regularization_coeff = param.regularizer._regularization_coeff
else:
elif param.regularizer is not None:
regularization_method = ""
regularization_coeff = 0.0
if param.dtype == paddle.float32:
Expand Down

0 comments on commit 151c2ef

Please sign in to comment.