Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: nathzi1505 <[email protected]>
  • Loading branch information
SethiAbhinav and p3jitnath authored Mar 5, 2023
1 parent 59a098b commit d42a654
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ivy/functional/frontends/tensorflow/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,7 @@ def is_nan(x, name=None):
)
def is_finite(x, name=None):
return ivy.isfinite(x)

@to_ivy_arrays_and_back
def atan(x, name=None):
return ivy.atan(x)
26 changes: 26 additions & 0 deletions ivy_tests/test_ivy/test_frontends/test_tensorflow/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -1740,3 +1740,29 @@ def test_tensorflow_is_finite(
on_device=on_device,
x=x[0],
)


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

0 comments on commit d42a654

Please sign in to comment.