Skip to content

Commit

Permalink
commit3 (test edited)
Browse files Browse the repository at this point in the history
  • Loading branch information
hovo7 committed Sep 13, 2023
1 parent a29748e commit a137399
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions ivy_tests/test_ivy/test_frontends/test_tensorflow/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,31 @@ def test_tensorflow_atan2(
x=x[1],
)

#inverse
@handle_frontend_test(
fn_tree="tensorflow.math.inverse",
dtype_and_x=helpers.dtype_and_values(available_dtypes=helpers.get_dtypes("float")),
test_with_out=st.just(False),
)
def test_tensorflow_inverse(
*,
dtype_and_x,
frontend,
test_flags,
fn_tree,
backend_fw,
on_device,
):
input_dtype, x = dtype_and_x
helpers.test_frontend_function(
input_dtypes=input_dtype,
backend_to_test=backend_fw,
frontend=frontend,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,
x=x[0],
)

# atanh
@handle_frontend_test(
Expand Down Expand Up @@ -482,32 +507,6 @@ def test_tensorflow_bincount(
minlength=0,
)

# inverse
@handle_frontend_test(
fn_tree="paddle.tensor.math.inverse",
dtype_and_x=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("float"),
),
)
def test_paddle_inverse(
*,
dtype_and_x,
on_device,
fn_tree,
frontend,
backend_fw,
test_flags,
):
input_dtype, x = dtype_and_x
helpers.test_frontend_function(
input_dtypes=input_dtype,
frontend=frontend,
backend_to_test=backend_fw,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,
x=x[0],
)

# ceil
@handle_frontend_test(
Expand Down

0 comments on commit a137399

Please sign in to comment.