-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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] Unify the static amp codes of fp16 and bf16. #52694
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
) | ||
self._amp_dtype = core.VarDesc.VarType.BF16 | ||
else: | ||
self._amp_dtype = core.VarDesc.VarType.FP16 |
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.
这个应该是未对用户暴露的接口,可以把原来的参数列表调整下,用dtype和level?
test/amp/test_model_cast_to_bf16.py
Outdated
# op_stats_list = amp.debugging._get_op_stats_list(main_program) | ||
|
||
# op_stats_dict = op_stats_list[0] | ||
# expected_bf16_calls = { |
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.
使用AMP后,Program的算子类型在不同环境下,存在一些异常,导致CI出现check不通过。本PR暂时移除该check,后续PR中打开并修复。
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
set_tests_properties(test_model_cast_to_bf16 PROPERTIES TIMEOUT 300)
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 skipIf
PR types
Others
PR changes
APIs
Describe
amp_decorate
。