Skip to content

Commit a72ed09

Browse files
fix: raise IvyNotImplementedException for 'amin' and 'amax' modes on put_along_axis (#28907)
1 parent c752dac commit a72ed09

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ivy/functional/ivy/experimental/manipulation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,13 @@ def put_along_axis(
18751875
ivy.array([[10, 30, 20],
18761876
[60, 40, 50]])
18771877
"""
1878+
1879+
# TODO: support 'amin' and 'amax' modes
1880+
if mode in ["amin", "amax"]:
1881+
raise ivy.exceptions.IvyNotImplementedException(
1882+
f"mode '{mode}' is not yet supported for put_along_axis"
1883+
)
1884+
18781885
arr, values = ivy.promote_types_of_inputs(arr, values)
18791886
arr_shape = arr.shape
18801887

0 commit comments

Comments
 (0)