Skip to content

add fuse_bn_add_act_ops args - #4864

Merged
zhangting2020 merged 4 commits into
PaddlePaddle:developfrom
zhangting2020:fuse_bn_add_act
Oct 15, 2020
Merged

zhangting2020 merged 4 commits into
PaddlePaddle:developfrom
zhangting2020:fuse_bn_add_act

Conversation

@zhangting2020

@zhangting2020 zhangting2020 commented Sep 22, 2020 •

Copy link
Copy Markdown
Collaborator

为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中已验证无问题

@wzzju wzzju 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. 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.

3 participants