diff --git a/ivy/functional/frontends/tensorflow/math.py b/ivy/functional/frontends/tensorflow/math.py index 1efdc9b86dc18..56311a2415432 100644 --- a/ivy/functional/frontends/tensorflow/math.py +++ b/ivy/functional/frontends/tensorflow/math.py @@ -487,6 +487,13 @@ 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) + + +@to_ivy_arrays_and_back +def log(x, name=None): + return ivy.log(x) + diff --git a/ivy_tests/test_ivy/test_frontends/test_tensorflow/test_math.py b/ivy_tests/test_ivy/test_frontends/test_tensorflow/test_math.py index add2fa258c062..e5298f3ca5147 100644 --- a/ivy_tests/test_ivy/test_frontends/test_tensorflow/test_math.py +++ b/ivy_tests/test_ivy/test_frontends/test_tensorflow/test_math.py @@ -1765,4 +1765,29 @@ def test_tensorflow_atan( on_device=on_device, x=x[0], ) - \ No newline at end of file + + +# log +@handle_frontend_test( + fn_tree="tensorflow.math.log", + dtype_and_x=helpers.dtype_and_values( + available_dtypes=helpers.get_dtypes("float"), + ), +) +def test_tensorflow_log( + *, + dtype_and_x, + on_device, + fn_tree, + frontend, + test_flags, +): + 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], + )