-
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
[Hackathon 5th No.49][pir] add some operation - Part 3 #58219
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
res_np_c = paddle.pow(paddle.to_tensor(x_np), 2) | ||
# TODO(gouzil): solve paddle.fill_constant problem | ||
# res_np_d = x_np.__pow__(2) | ||
# res_np_e = x_np.__rpow__(2) |
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.
后续可以把一些没有用的注释删掉~
) | ||
np.testing.assert_allclose(res_np_b, b_np, rtol=1e-05) | ||
np.testing.assert_allclose(res_np_c, c_np, rtol=1e-05) | ||
# np.testing.assert_allclose(res_np_d, d_np, rtol=1e-05) |
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.
同上
PR types
Others
PR changes
APIs
Description
新增:
__pow__
、__rpow__
、**
(前面这俩直接调用还有点问题)__floordiv__
、//
__mod__
、%
__matmul__
、@
相关链接:
Tensor
、老IRVariable
、新IROpResult
method 支持对照表 #58118