Skip to content

Commit

Permalink
fix: fixed fmin at paddle frontend facing unsupported dtype error (#2…
Browse files Browse the repository at this point in the history
…8148)

fixed fmin at paddle frontend
  • Loading branch information
samthakur587 authored Feb 1, 2024
1 parent 91535b3 commit a867791
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ivy/functional/frontends/paddle/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ def fmax(x, y, name=None):
return ivy.fmax(x, y)


@with_unsupported_dtypes({"2.6.0 and below": "bfloat16"}, "paddle")
@with_supported_dtypes(
{"2.6.0 and below": ("float32", "float64", "int32", "int64")}, "paddle"
)
@to_ivy_arrays_and_back
def fmin(x, y, name=None):
return ivy.fmin(x, y)
Expand Down
2 changes: 1 addition & 1 deletion ivy_tests/test_ivy/test_frontends/test_paddle/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ def test_paddle_fmax(
@handle_frontend_test(
fn_tree="paddle.fmin",
dtypes_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("float"), num_arrays=2, shared_dtype=True
available_dtypes=helpers.get_dtypes("valid"), num_arrays=2, shared_dtype=True
),
)
def test_paddle_fmin(
Expand Down

0 comments on commit a867791

Please sign in to comment.