You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
torch take_along_axis does not support negative indices #360
The standard states that take_along_axis must support negative indices as usual, but:
fromarray_api_compatimporttorchasxpxp.take_along_axis(xp.asarray([1]), xp.asarray([-1]))
# RuntimeError: index -1 is out of bounds for dimension 0 with size 1
Activity
ev-br commentedon Nov 22, 2025
cf #361 for a fix and data-apis/array-api-tests#397 for a test.
Would be helpful if you could test-drive gh-361 @mdhaber