-
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 logical compare method - Part 4 #58343
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
对于 |
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
# for logical compare | ||
# TODO(gouzil): Open after deleting c++ logic | ||
# ( | ||
# '__eq__', |
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.
这里的eq和c++里pybind的相等的语义不一样,是否需要把C++下的那个删掉还需要讨论一下
PR types
Others
PR changes
Others
Description
新增:
__eq__
、==
(修改pir backward
后添加)__ne__
、!=
__lt__
、<
__le__
、<=
__gt__
、>
__ge__
、>=
__and__
、&
__or__
、|
__xor__
、^
__invert__
、~
修复:
__rpow__
和__pow__
相关链接:
Tensor
、老IRVariable
、新IROpResult
method 支持对照表 #58118