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

[AMP] Add BatchNorm_1D_2D_3D skip for paddle.amp.decorate #38541

Merged
merged 2 commits into from
Dec 29, 2021

Conversation

zhangbo9674
Copy link
Contributor

@zhangbo9674 zhangbo9674 commented Dec 28, 2021

PR types

Bug fixes

PR changes

APIs

Describe

框架的batch_norm op参数不可以为fp16,paddle.amp.decorate新增对paddle.nn.BatchNorm_1D_2D_3D的判断,上述三个网络将跳过decorate实现的参数改写。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

zhiqiu
zhiqiu previously approved these changes Dec 29, 2021
Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

@zhangbo9674 zhangbo9674 merged commit 2ebc8f7 into PaddlePaddle:develop Dec 29, 2021
@zhangbo9674 zhangbo9674 deleted the dev/fix_bn_bug_fp16 branch March 2, 2023 02:58
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.

2 participants