From 9bf2732251305433c06f874be48249c340aca084 Mon Sep 17 00:00:00 2001 From: liu zhengxi <380185688@qq.com> Date: Wed, 28 Oct 2020 17:15:45 +0800 Subject: [PATCH] fix typo (#4919) --- dygraph/transformer/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph/transformer/train.py b/dygraph/transformer/train.py index 752b0534..7e0c8942 100644 --- a/dygraph/transformer/train.py +++ b/dygraph/transformer/train.py @@ -201,7 +201,7 @@ def do_train(args): logger.info( "step_idx: %d, epoch: %d, batch: %d, avg loss: %f, " "normalized loss: %f, ppl: %f, avg_speed: %.2f step/s, " - "words speed: %0.2f works/s" % + "words speed: %0.2f words/s" % (step_idx, pass_id, batch_id, total_avg_cost, total_avg_cost - loss_normalizer, np.exp([min(total_avg_cost, 100)]), -- GitLab