未验证 提交 2a9e2559 编写于 作者: W wangguanzhong 提交者: GitHub

fix train in paddle 2.0 (#1735)

上级 23d24764
...@@ -172,7 +172,6 @@ def run(FLAGS, cfg, place): ...@@ -172,7 +172,6 @@ def run(FLAGS, cfg, place):
model.apply_collective_grads() model.apply_collective_grads()
else: else:
loss.backward() loss.backward()
optimizer.minimize(loss)
optimizer.step() optimizer.step()
curr_lr = optimizer.get_lr() curr_lr = optimizer.get_lr()
lr.step() lr.step()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册