未验证 提交 fe3a5337 编写于 作者: W wawltor 提交者: GitHub

add the log format for the bert benchmark (#5101)

上级 6385fcdd
...@@ -326,7 +326,7 @@ def do_train(args): ...@@ -326,7 +326,7 @@ def do_train(args):
if global_step % args.logging_steps == 0: if global_step % args.logging_steps == 0:
time_cost = time.time() - tic_train time_cost = time.time() - tic_train
print( print(
"global step %d, epoch: %d, batch: %d, loss: %f, speed: %.2f step/s, ips :%.2f sequences/s" "global step %d, epoch: %d, batch: %d, loss: %f, speed: %.2f step/s, ips: %.2f sequences/s"
% (global_step, epoch, step, loss_return[0], % (global_step, epoch, step, loss_return[0],
args.logging_steps / time_cost, args.logging_steps / time_cost,
args.logging_steps * args.batch_size / time_cost)) args.logging_steps * args.batch_size / time_cost))
......
...@@ -276,7 +276,7 @@ def do_train(args): ...@@ -276,7 +276,7 @@ def do_train(args):
if global_step % args.logging_steps == 0: if global_step % args.logging_steps == 0:
time_cost = time.time() - tic_train time_cost = time.time() - tic_train
print( print(
"global step %d, epoch: %d, batch: %d, loss: %f, speed: %.2f step/s, ips :%.2f sequences/s" "global step %d, epoch: %d, batch: %d, loss: %f, speed: %.2f step/s, ips: %.2f sequences/s"
% (global_step, epoch, step, loss_return[0], % (global_step, epoch, step, loss_return[0],
args.logging_steps / time_cost, args.logging_steps / time_cost,
args.logging_steps * args.batch_size / time_cost)) args.logging_steps * args.batch_size / time_cost))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册