-
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
[pir] add __neg__
and clean pir.cc
#60166
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/pir/math_op_patch.py
Outdated
@@ -513,6 +516,7 @@ def value_hash(self): | |||
('append', append), | |||
('set_shape', set_shape), | |||
('__hash__', value_hash), | |||
# For basaic operators |
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.
# For basaic operators | |
# For basic operators |
OVERRIDE_COMPARE_OP_FOR_EACH(__lt__, less_than); | ||
OVERRIDE_COMPARE_OP_FOR_EACH(__le__, less_equal); | ||
OVERRIDE_COMPARE_OP_FOR_EACH(__gt__, greater_than); | ||
OVERRIDE_COMPARE_OP_FOR_EACH(__ge__, greater_equal); |
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.
PR types
Others
PR changes
Others
Description
添加
__neg__
并清理pir.cc
的BindValue
相关链接:
Tensor
、老IRVariable
、新IROpResult
method 支持对照表 #58118