Skip to content

refine benchmark log - #4888

Merged
luotao1 merged 2 commits into
PaddlePaddle:developfrom
luotao1:ips
Sep 27, 2020
Merged

luotao1 merged 2 commits into
PaddlePaddle:developfrom
luotao1:ips

Conversation

@luotao1

@luotao1 luotao1 commented Sep 25, 2020

Copy link
Copy Markdown
Collaborator

根据 Paddle性能测试规范,本PR将时间相关的单位改成 sec

test=develop

@wanghuancoder wanghuancoder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

两条建议请参考。

Comment thread dygraph/mobilenet/train.py Outdated
ips = float(args.batch_size) / batch_cost_avg.get_average()
print(
"[Epoch %d, batch %d], avg_loss %.5f, acc_top1 %.5f, acc_top5 %.5f, batch_cost: %.5f s, net_t: %.5f s, backward_t: %.5f s, reader_t: %.5f s, ips: %.5f images/sec"
"[Epoch %d, batch %d], avg_loss %.5f, acc_top1 %.5f, acc_top5 %.5f, batch_cost: %.5f sec, net_t: %.5f sec, backward_t: %.5f sec, reader_t: %.5f sec, ips: %.5f images/sec"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把所有的 _t 改成 _cost吧~

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread dygraph/resnet/train.py Outdated
args.batch_size) / train_batch_cost_avg.get_average()
print(
"[Epoch %d, batch %d] loss %.5f, acc1 %.5f, acc5 %.5f, batch_cost: %.5f s, reader_cost: %.5f s, ips: %.5f images/sec"
"[Epoch %d, batch %d] loss %.5f, acc1 %.5f, acc5 %.5f, batch_cost: %.5f sec, reader_cost: %.5f sec, ips: %.5f images/sec"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

小小的建议:loss: acc1: acc5: ,这样都有冒号了。

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

test=develop

@wanghuancoder wanghuancoder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhangting2020 zhangting2020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@luotao1
luotao1 merged commit 4000dfb into PaddlePaddle:develop Sep 27, 2020
@luotao1
luotao1 deleted the ips branch September 27, 2020 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants