-
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
fix test of affine_grid with rocm #32047
Conversation
Thanks for your contribution! |
@@ -83,6 +83,8 @@ def initTestCase(self): | |||
self.output_shape = np.array([20, 2, 5, 7]).astype("int32") | |||
self.dynamic_shape = True | |||
self.use_cudnn = True | |||
if paddle.fluid.core.is_compiled_with_rocm(): | |||
self.use_cudnn = False # Current cudnn is not supported in this op with rocm |
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.
注释改成 # ROCM platform do not have MIOPEN kernel for affine_grid
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.
done
affine_grid API的use_cudnn也需要根据判断是否是rocm平台来关掉use_cudnn |
@Ray2020BD 贴一下rocm环境下这两个单测的结果 |
done. |
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
PR types
Bug fixes
PR changes
APIs
Describe
fix test of affine_grid with rocm