Skip to content
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

Merged
merged 7 commits into from
Jun 26, 2023
Merged

EHN: logical_or added in paddle tesnor.py #17615

merged 7 commits into from
Jun 26, 2023

Conversation

MuhammadNizamani
Copy link
Contributor

Logical_or is added in paddle.tesnor.tesnor.Tensor from issue #17596

@ivy-leaves ivy-leaves added the Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist label Jun 23, 2023
@ivy-leaves
Copy link

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 🤗

@ivy-seed ivy-seed assigned bipinKrishnan and unassigned Dsantra92 Jun 23, 2023
Copy link
Contributor

@Dsantra92 Dsantra92 left a 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)
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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)

Copy link
Contributor

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.

@bipinKrishnan
Copy link
Contributor

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 bipinKrishnan linked an issue Jun 25, 2023 that may be closed by this pull request
@MuhammadNizamani
Copy link
Contributor Author

@bipinKrishnan ok sir got it

@bipinKrishnan
Copy link
Contributor

LGTM! Thanks @MuhammadNizamani 🚀

@bipinKrishnan bipinKrishnan merged commit 035d213 into ivy-llc:master Jun 26, 2023
@MuhammadNizamani MuhammadNizamani deleted the logical_or branch June 26, 2023 15:37
Sam-Armstrong pushed a commit to Sam-Armstrong/ivy that referenced this pull request Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

logical_or
4 participants