-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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] Support AMP-O2 for bfloat16 #45541
[AMP] Support AMP-O2 for bfloat16 #45541
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -93,6 +93,9 @@ | |||
BF16_WHITE_LIST = {'conv2d', 'matmul_v2'} | |||
BF16_BLACK_LIST = {' '} | |||
|
|||
PURE_BF16_WHITE_LIST = {' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why use ' '
instead of ''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed from' '
to ''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for docs
decorate的API描述部分遗漏了bf16的描述,后续补一个pr吧
* Cherry-pick the register of bfloat16 for amp_kernel, pull request #45541. * Cherry-pick the master_grad support of adamw, pull request #51141. * add bf16 for some ops in static mode (#51582) * Add bfloat16 support for some api in static mode. * Fix codestyle. * Revert the change of layer_function_generator.py. --------- Co-authored-by: Shaojie WANG <wsjmessi@163.com>
PR types
New features
PR changes
Others
Describe
AMP-O2支持bfloat16数据类型
中文文档:PaddlePaddle/docs#5273