-
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
feat(torch): torch.histc function added to torch front-end #23678
Conversation
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.
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.
Protected Branch
In order to be considered for merging, the pull request changes must not be implemented on the "main" branch. This is described in our Contributing Guide. We are closing this pull request and we would suggest that you implement your changes as described in our Contributing Guide and open a new pull request.
My tests failed, but had to make the PR, else my issue was gonna expire. I need assistance in understanding the errors. |
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.
Congrats on making your first Pull Request and thanks for supporting Ivy! 🎉
Join the conversation in our Discord
Here are some notes to understand our tests:
- We have merged all the tests in one file called `display_test_results` job. 👀 It contains the following two sections:
- Combined Test Results: This shows the results of all the ivy tests that ran on the PR. ✔️
- New Failures Introduced: This lists the tests that fails on this PR.
Please make sure they are passing. 💪
Keep in mind that we will assign an engineer for this task and they will look at it based on the workload that they have, so be patient.
I have solved results not matching error for numpy vs torch ground truth. Essentially the problem is when min and max of the array are equal then how are you gonna make bins for the histogram. |
hi @kiluazen , i really apologise for my late reply. It seems that there are falsifying examples shown in the unit tests. Could you take a look and fix it please? |
Thank you for this PR, here is the CI results: Failed tests:This PR introduces the following new failing tests: |
I am struggling with understanding the root cause of my test failures. please take a look at this colab file. I played with ouputs of jax.numpy and torch.histc and also the histc funciton I wrote using ivy.histogram. They all are giving me the same outputs. But in my failed test cases it's like backend jax is not matching with ground truth torch. So maybe there is conversion problem with frontend to jax backend, I don't know . I need some assistance with this. Can you specify a 25 min window in the next week, so we can both be online and have a back and forth conversation and resolve this issue. |
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.
Hi @kiluazen
Thanks for the PR. Sorry for the delay on our end.
Could you remove the duplicate histc implmentations and the tests and cleanup stuff from conflict resolving like <<<<<<< HEAD
and =======
Feel free to request a review when done. Thanks :)
This PR has been labelled as stale because it has been inactive for more than 7 days. If you would like to continue working on this PR, then please add another comment or this PR will be closed in 7 days. |
This PR has been closed because it has been marked as stale for more than 7 days with no activity. |
PR Description
Related Issue
Close #23527
Checklist
Socials:
@KushalSM5