Skip to content
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

add fuse_bn_add_act_ops args #4864

Merged
merged 4 commits into from
Oct 15, 2020

Conversation

zhangting2020
Copy link
Contributor

@zhangting2020 zhangting2020 commented Sep 22, 2020

为AMP训练增了了fuse_bn_add_act op,目前通过python接口使用这个fuse op,因此对应修改了模型:增加add fuse_bn_add_act_ops args。

TODO:后续添加了fuse_bn_add_act的pass后,通过build_strategy开启,就不再需要对resnet.py和build_model.py进行修改了。因此待pass添加后,这两个文件会改回去。

性能收益:
V100, CUDA 10.1, cuDNN 7.6, single card, BS=128

  • before:1015.18 imgs/s
  • after:1085.98 imgs/s,+6.9%

收敛性验证在PR27230中已验证无问题

Copy link
Contributor

@wzzju wzzju left a comment

Choose a reason for hiding this comment

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

LGTM. Please ask @qingqing01 for review.

@zhangting2020 zhangting2020 merged commit 294ff30 into PaddlePaddle:develop Oct 15, 2020
zhangting2020 added a commit that referenced this pull request Oct 22, 2020
zhangting2020 added a commit that referenced this pull request Oct 27, 2020
* Revert "add fuse_bn_add_act_ops args (#4864)"
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.

None yet

3 participants