From 009e5b8e65aee4836a74be4548c11a2338bbc272 Mon Sep 17 00:00:00 2001 From: LielinJiang <50691816+LielinJiang@users.noreply.github.com> Date: Fri, 4 Dec 2020 16:00:55 +0800 Subject: [PATCH] fix typo in ProgBarLogger (#29329) (#29351) --- python/paddle/hapi/callbacks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/hapi/callbacks.py b/python/paddle/hapi/callbacks.py index ebb36623a42..8567a2fff7d 100644 --- a/python/paddle/hapi/callbacks.py +++ b/python/paddle/hapi/callbacks.py @@ -362,7 +362,7 @@ class ProgBarLogger(Callback): } if self._is_print(): print( - "The loss value printed in the log is the current batch, and the metric is the average value of previous step." + "The loss value printed in the log is the current step, and the metric is the average value of previous step." ) def on_epoch_begin(self, epoch=None, logs=None): @@ -395,7 +395,7 @@ class ProgBarLogger(Callback): ('avg_batch_cost', "%.5f sec" % (timer['batch_time'] / cnt))) values.append( ('ips', "%.5f samples/sec" % - (samples / (timer['batch_time'] + timer['batch_time'])))) + (samples / (timer['data_time'] + timer['batch_time'])))) progbar.update(steps, values) -- GitLab