-
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 OP&Test] assign op add fp16 、bfp16 test #52233
[AMP OP&Test] assign op add fp16 、bfp16 test #52233
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
result1 = paddle.zeros(shape=[3, 3], dtype='float32') | ||
paddle.assign(array, result1) | ||
np.testing.assert_allclose(result1.numpy(), array, rtol=1e-05) | ||
for dtype in [np.bool_, np.float32, np.int32, np.int64]: |
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.
这部分无需修改,只关注OpTest即可
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.
顺手把冗余的代码规整到一起
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
Performance optimization
PR changes
OPs
Describe
assign op add fp16 、bfp16 test