From 438e7310b43f8707477a1074079fc54af963a0f1 Mon Sep 17 00:00:00 2001 From: chenguowei01 Date: Tue, 1 Sep 2020 15:56:32 +0800 Subject: [PATCH] fix bug. iter start from 0 when resume --- dygraph/core/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph/core/train.py b/dygraph/core/train.py index 2bce9a16..6c64532f 100644 --- a/dygraph/core/train.py +++ b/dygraph/core/train.py @@ -79,7 +79,7 @@ def train(model, train_batch_cost = 0.0 timer.start() - iter = 0 + iter = start_iter while iter < iters: for data in loader: iter += 1 -- GitLab