提交 793bfddb 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!1112 Fix weight decay bug for `SGD` optimizer

Merge pull request !1112 from seatea/fix-sgd-weight-decay-bug
......@@ -136,7 +136,6 @@ class SGD(Optimizer):
params = self.parameters
accum = self.accum
stat = self.stat
gradients = self.decay_weight(gradients)
gradients = self.scale_grad(gradients)
lr = self.get_lr()
if self.is_group_lr:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册