-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API Compatibility] Fix tensor __eq__ and __ne__ for unsupported type
#76118
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
[API Compatibility] Fix tensor __eq__ and __ne__ for unsupported type
#76118
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.
None usage
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.
ne 也加一下相关处理吧
None usage__eq__ an __ne__ for unsupported type
__eq__ an __ne__ for unsupported type__eq__ and __ne__ for unsupported type
这里可以详细描述下支持的是哪两种功能,给出一下示例代码 |
PR Category
User Experience
PR Types
Bug fixes
Description
支持
paddle.Tensor和pir.Value类型的 var 和None的__eq__和__ne__操作示例: