Skip to content

Commit

Permalink
fix: Fixed tf.math.argmin for torch, jax, and paddle backends (#28342)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai-Suraj-27 authored Feb 20, 2024
1 parent 704c571 commit 503c29c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion ivy/functional/backends/torch/searching.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ def argmax(
return ret


@with_unsupported_dtypes({"2.2 and below": ("complex",)}, backend_version)
@with_unsupported_dtypes(
{
"2.2 and below": (
"complex",
"bool",
)
},
backend_version,
)
def argmin(
x: torch.Tensor,
/,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_tensorflow_argmin(
on_device,
output_type,
):
input_dtype, x, axis = dtype_and_x
input_dtype, x, axis, *_ = dtype_and_x
if isinstance(axis, tuple):
axis = axis[0]
helpers.test_frontend_function(
Expand Down

0 comments on commit 503c29c

Please sign in to comment.