Skip to content

Commit

Permalink
fix: fixed fmax at paddle frontend dtype problem
Browse files Browse the repository at this point in the history
  • Loading branch information
samthakur587 committed Jan 31, 2024
1 parent 8917d8c commit bdf37db
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 @@ -285,7 +285,9 @@ def floor_mod(x, y, name=None):
return ivy.remainder(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 fmax(x, y, name=None):
return ivy.fmax(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 @@ -1137,7 +1137,7 @@ def test_paddle_floor_mod(
@handle_frontend_test(
fn_tree="paddle.fmax",
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_fmax(
Expand Down

0 comments on commit bdf37db

Please sign in to comment.