diff --git a/dygraph/transformer/train.py b/dygraph/transformer/train.py index 752b053479b585fc2f13cd48d4b0a2f131d0e337..7e0c8942b1c68b8c74b85759aab01e89818a01f4 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)]),