Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use
xp.take_along_axis
if Array API version >=2024.12 (#4406)
see: https://github.com/data-apis/array-api-strict/blob/d086c619a58f35c38240592ef994aa19ca7beebc/array_api_strict/_indexing_functions.py#L30-L39 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced the `xp_take_along_axis` function to utilize newer array API features when available, improving performance and functionality. - **Bug Fixes** - Maintained compatibility with older versions of the array API by providing a fallback implementation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]>
- Loading branch information