Change dygraph transformer speed to ips#4936
Open
phlrain wants to merge 5 commits intoPaddlePaddle:dev-staticfrom
Open
Change dygraph transformer speed to ips#4936phlrain wants to merge 5 commits intoPaddlePaddle:dev-staticfrom
phlrain wants to merge 5 commits intoPaddlePaddle:dev-staticfrom
Conversation
… change_dygraph_transformer_speed_to_ips
Contributor
wanghuancoder
left a comment
There was a problem hiding this comment.
ips的单位是从日志打印中复制出去的,如果不用sec,网页上也将显示s
dygraph/transformer/train.py
Outdated
| "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" % |
… change_dygraph_transformer_speed_to_ips
Contributor
wanghuancoder
left a comment
There was a problem hiding this comment.
train_batch_cost需求平均
Comment on lines
+183
to
186
| "-- 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, |
Contributor
There was a problem hiding this comment.
train_batch_cost需求平均
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change dygraph transformer speed to ips