-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 OP&Test] support bf16 for batch norm #52407
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
places = [] | ||
if core.is_compiled_with_cuda(): | ||
place = core.CUDAPlace(0) | ||
if core.is_float16_supported(place): |
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.
这里应该是is_bfloat16_supported
@@ -376,6 +397,28 @@ def test_check_output(self): | |||
self.check_with_place(place, data_format, self.dtype, [2, 3]) | |||
|
|||
|
|||
class TestBF16BatchNormOpInference(TestBatchNormOpInference): |
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.
是否需要加个skipif跳过不支持bf16的平台
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
PR types
Function optimization
PR changes
APIs
Describe
support bf16 for batch norm