-
Notifications
You must be signed in to change notification settings - Fork 70
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
Improving performance for some special cases of advanced indexing #731
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.
LGTM, I merged from branch-22.12, which should hopefully make CI succeed.
@manopapad : some tests still fail. |
For example the one in test_einsum :
did something change in this test on in the way we convert types? |
The CI failure is due to the recent update of NumPy to 1.24 in our CI images. #745 should fix them. You can go ahead and merge your changes, since they're not related to these failures. |
This PR should improve performance for the case of
a[tuple_of_indices]=scalar
wheretuple of indices
contains single ndarray of boolean type.In this case original array
a
will be transformed so thatputmask
orADVANCED_INDEXING_TASK
can be called to avoid Realm Copy operation.