-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feature/advanced indexing #1095
Conversation
- Kernels for _take, _put - Python API functions for take, put
- Clipping now clips indices to -n <= i < n for n = axis size - Fixed a segfault caused by a typo when copying strides
- Moved indices validation to avoid memory leaks - Refactored for loop over orthogonal elements of shapes - Direct initialization of sycl::event vectors
- Tests include - strided data for take and put - strided indices for take and put - indexing compute follows data - indexing argument validation
- Error for non-integer usm_ndarrays used as indices changed to IndexError
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1095/index.html |
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_112 ran successfully. |
Implemented mask_positions, _extract, _place, _nonzero and _array_overlap APIs.
This allows to implement behavior of place which cycles over values of val array if that is shorter than the number of non-zero elements in the mask.
- Host_tasks now collected and used as dependencies for dec_ref of py arguments - Return temporaries deallocation event to further prevent dangling host_tasks
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_113 ran successfully. |
…ace-nonzero Boolean indexing: extract, place, nonzero
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_122 ran successfully. |
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_123 ran successfully. |
- Improved conformity to array API standard - Added docstrings
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_124 ran successfully. |
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_125 ran successfully. |
1 similar comment
Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_125 ran successfully. |
This is a draft PR with advance indexing implementation.