From 2a9e25593553049a0bb61d4bfa7134f8c825efbc Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Sat, 21 Nov 2020 16:40:10 +0800 Subject: [PATCH] fix train in paddle 2.0 (#1735) --- tools/train.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/train.py b/tools/train.py index 83a9196ab..716b7b8a6 100755 --- a/tools/train.py +++ b/tools/train.py @@ -172,7 +172,6 @@ def run(FLAGS, cfg, place): model.apply_collective_grads() else: loss.backward() - optimizer.minimize(loss) optimizer.step() curr_lr = optimizer.get_lr() lr.step() -- GitLab