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

feat: added bernoulli_ #23680

Closed
wants to merge 19 commits into from
Closed

Conversation

jaskiratsingh2000
Copy link
Contributor

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Compliance Checks

Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.

Issue Reference

In order to be considered for merging, the pull request description must refer to a specific issue number. This is described in our contributing guide and our PR template.
This check is looking for a phrase similar to: "Fixes #XYZ" or "Resolves #XYZ" where XYZ is the issue number that this PR is meant to address.

@ivy-leaves ivy-leaves added the PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist label Sep 15, 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 🤗

@jaskiratsingh2000
Copy link
Contributor Author

@Mr-Niraj-Kulkarni Excitedly looking forward to get it reviewed and merged!

@Mr-Niraj-Kulkarni
Copy link
Contributor

@jaskiratsingh2000. Can you please add the tests for it as well.

@jaskiratsingh2000
Copy link
Contributor Author

@Mr-Niraj-Kulkarni will it be possible that I could submit a test from another PR?

@Mr-Niraj-Kulkarni
Copy link
Contributor

@Mr-Niraj-Kulkarni will it be possible that I could submit a test from another PR?

No. You must write the tests and the test should pass for the implemented function. That is complete procedure for implementing a function. Please take help of the tests implemented in the file to implement the test. Also refer the ivy documentation for test implementation. Once done please let me know I will review it then. Thanks

@jaskiratsingh2000
Copy link
Contributor Author

@Mr-Niraj-Kulkarni I have implemented the test for the specific function. Can you please review it now?

@tbeetech
Copy link
Contributor

I will take it from here

@jaskiratsingh2000
Copy link
Contributor Author

@Mr-Niraj-Kulkarni After tremendous debugging I figured out that the test case for which it is failing is not from the code I have implemented it seems to be a whole from other. So I feel this is good to go

dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("valid"),
),
test_with_out=st.just(True),
Copy link
Contributor

@umairjavaid umairjavaid Sep 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if that works

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@umairjavaid you mean removing "test_with_out=st.just(True)" line right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaskiratsingh2000 Yup we'll have to remove this

@ivy-seed ivy-seed assigned ZoeCD and unassigned Mr-Niraj-Kulkarni Sep 25, 2023
@ZoeCD ZoeCD assigned umairjavaid and unassigned ZoeCD Sep 25, 2023
@umairjavaid umairjavaid removed their assignment Oct 16, 2023
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("valid"),
),
test_with_out=st.just(True),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaskiratsingh2000 Yup we'll have to remove this

"input": x[0],
},
method_input_dtypes=input_dtype,
method_all_as_kwargs_np={"generator": x[1], "out": x[2]},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "out" kwarg should also be removed here. Thanks

@hmahmood24
Copy link
Contributor

Closing this PR since it has been stale for more than 2 weeks now.

@hmahmood24 hmahmood24 closed this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants