diff --git a/ivy/functional/frontends/paddle/tensor/math.py b/ivy/functional/frontends/paddle/tensor/math.py index a2b3f4e4989f4..78a5b8bd09b44 100644 --- a/ivy/functional/frontends/paddle/tensor/math.py +++ b/ivy/functional/frontends/paddle/tensor/math.py @@ -49,11 +49,13 @@ def rsqrt_(x, name=None): def sqrt_(x, name=None): return ivy.inplace_update(x, sqrt(x)) + @with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle") @to_ivy_arrays_and_back def subtract_(x, y, name=None): return ivy.inplace_update(x, subtract(x, y)) + @with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle") @to_ivy_arrays_and_back def tanh_(x, name=None): diff --git a/ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_math.py b/ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_math.py index 0435111ba638f..06a054b0dc79a 100644 --- a/ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_math.py +++ b/ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_math.py @@ -179,6 +179,7 @@ def test_paddle_rsqrt_( x=x[0], ) + # sqrt_ @handle_frontend_test( fn_tree="paddle.tensor.math.sqrt_", @@ -205,6 +206,8 @@ def test_paddle_sqrt_( on_device=on_device, x=x[0], ) + + # subtract_ @handle_frontend_test( fn_tree="paddle.tensor.math.subtract_", @@ -239,7 +242,8 @@ def test_paddle_subtract_( y=x[1], ) -#tanh_ + +# tanh_ @handle_frontend_test( fn_tree="paddle.tensor.math.tanh_", dtype_and_x=helpers.dtype_and_values(