-
Notifications
You must be signed in to change notification settings - Fork 29
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
[MAINT] Run array API conformity with 2024.12 spec #2021
Conversation
View rendered docs @ https://intelpython.github.io/dpctl/pulls/2021/index.html |
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_14 ran successfully. |
fc9bea6
to
015cae9
Compare
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_73 ran successfully. |
015cae9
to
3ca6255
Compare
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_87 ran successfully. |
@antonwolfy |
array API 2024 spec requires advanced indexing with integer arrays, and when advanced indexing behavior is triggered, integral scalars are to be converted to arrays and broadcast with the other indices
this fixes cases like `x[..., arr1, int1, arr2, int2, :, int3]`, the final int will be treated as an integer instead of an array, and `arr1` through `int2` will be treated as arrays
since the index is on the host, we can raise like we normally would, which follows NumPy behavior
Reduces code duplication
Typos from advanced indexing updates
Test for the case where an basic integral index appears between two integral arrays, followed by a basic index, and then followed by `:`
0D array indices are treated as Python scalars and moved to the host when not part of other, consecutive array indices This means that 0D arrays also can't start a series of consecutive advanced indices
…en not among consecutive integer arrays
3ca6255
to
8a210c0
Compare
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_132 ran successfully. |
This PR experiments with running array API conformity tests with
ARRAY_API_TESTS_VERSION=2024.12