Skip to content

Commit d837c5f

Browse files
committed
fix dataloader log print
1 parent ddf6ec2 commit d837c5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/trainers/framework/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ def _executor_dataloader_train(self, model_dict, context):
199199
end_time = time.time()
200200
seconds = end_time - begin_time
201201
metrics_logging = metrics[:]
202-
metrics_logging = metrics.insert(1, seconds)
202+
metrics_logging.insert(1, seconds)
203203
begin_time = end_time
204-
logging.info(metrics_format.format(*metrics))
204+
logging.info(metrics_format.format(*metrics_logging))
205205
batch_id += 1
206206
except fluid.core.EOFException:
207207
reader.reset()

0 commit comments

Comments
 (0)