-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
EHN: logical_or added in paddle tesnor.py #17615
Conversation
If you are working on an open task, please edit the PR description to link to the issue you've created. For more information, please check ToDo List Issues Guide. Thank you 🤗 |
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.
Thanks for the contribution. Just a simple change and we will be good to merge!!
"paddle", | ||
) | ||
def logical_or(self, y, out=None, name=None): | ||
y_ivy = _to_ivy_array(y) |
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.
You need to wrap the variables explicitly for frontend functions.
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.
could please you explain why do I need wrap the variables explicitly for frontend functions?
_to_ivy_array(y) convert it into ivy_array
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.
@Dsantra92 are you talking about this way to implemet the function ?
def logical_or(self, y, out=None, name=None):
return paddle_frontend.logical_or(self, y, out=out)
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.
@Dsantra92 are you talking about this way to implemet the function ?
def logical_or(self, y, out=None, name=None): return paddle_frontend.logical_or(self, y, out=out)
Yeah, this is what @Dsantra92 meant probably.
Hey @MuhammadNizamani 🙂, I will link this to the corresponding issue, but in future you should do this yourself by adding a comment ‘Close #Issue_number’, as explained here. |
@bipinKrishnan ok sir got it |
LGTM! Thanks @MuhammadNizamani 🚀 |
Co-authored-by: bipinkrishnan <[email protected]> Co-authored-by: Deeptendu <[email protected]>
Logical_or is added in paddle.tesnor.tesnor.Tensor from issue #17596