-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change dygraph transformer speed to ips #4936
base: dev-static
Are you sure you want to change the base?
Change dygraph transformer speed to ips #4936
Conversation
… change_dygraph_transformer_speed_to_ips
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ips的单位是从日志打印中复制出去的,如果不用sec,网页上也将显示s
dygraph/transformer/train.py
Outdated
@@ -201,13 +204,16 @@ 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 words/s" % | |||
"reader cost: %0.2f sec, ips: %0.2f words/s" % |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
words/s -> words/sec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
… change_dygraph_transformer_speed_to_ips
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
train_batch_cost需求平均
"-- Epoch:[%d]; Batch:[%d]; ppl: %.5f, batch_cost: %.5f s, reader_cost: %.5f s, ips: %.5f words/sec" | ||
% (epoch_id, batch_id, np.exp(total_loss.numpy() / | ||
word_count), | ||
train_batch_cost, total_reader_cost / 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
train_batch_cost需求平均
Change dygraph transformer speed to ips