-
Notifications
You must be signed in to change notification settings - Fork 9
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
Regression: indexing by np.int64
indices
#144
Milestone
Comments
The MRE seems to work for me locally, is the error somewhere else?
|
Ah. It only happens with tuple indices. >>> a[(np.int64(0), )]
ValueError: Array indexing is only allowed when array to be indexed and all indexing arrays are on the same device. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Array API states:
Therefore, this is legal, because
operator.index(np.int64(0))
works:#139 broke it and caused a regression in scipy:
CC @lucyleeow
The text was updated successfully, but these errors were encountered: