Skip to content

Commit 411ee89

Browse files
committed
.
1 parent 0aaefd6 commit 411ee89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

array_api_compat/cupy/_aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def count_nonzero(
140140

141141
# take_along_axis: axis defaults to -1 but in cupy (and numpy) axis is a required arg
142142
def take_along_axis(x: Array, indices: Array, /, *, axis: int = -1):
143-
return xp.take_along_axis(x, indices, axis=axis)
143+
return np.take_along_axis(x, indices, axis=axis)
144144

145145

146146
# These functions are completely new here. If the library already has them

array_api_compat/numpy/_aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def count_nonzero(
142142

143143
# take_along_axis: axis defaults to -1 but in numpy axis is a required arg
144144
def take_along_axis(x: Array, indices: Array, /, *, axis: int = -1):
145-
return xp.take_along_axis(x, indices, axis=axis)
145+
return np.take_along_axis(x, indices, axis=axis)
146146

147147

148148
# These functions are completely new here. If the library already has them

0 commit comments

Comments
 (0)