-
Notifications
You must be signed in to change notification settings - Fork 89
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
fix: out of bounds index access issue in argmin and argmax complex in CPU kernel #3176
Conversation
@jpivarski @ianna I added the unit tests tests for |
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.
Good catch! This looks like it's more than fixing an out-of-bounds issue; the result wasn't right with the old indexing, was it? Are there any examples of tests that would fail numerically but not with an out of bounds index? (It's not necessary to produce one; I'm just asking.)
For the already implemented integration tests and the unit tests I added, the results were actually correct numerically but for the unit tests it shows a segfault on running the tests in |
@ianna This one only changes the CPU kernels and since the CI tests pass, I think it can be merged. Thanks! |
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.
@ManasviGoyal - Good catch! Thanks! I'll merge it when the tests pass. Thanks!
No description provided.