Skip to content

Commit

Permalink
manual black lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NripeshN committed Sep 16, 2023
1 parent 3a49634 commit 470b658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ivy/functional/frontends/paddle/tensor/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def test_paddle_rsqrt_(
x=x[0],
)


# sqrt_
@handle_frontend_test(
fn_tree="paddle.tensor.math.sqrt_",
Expand All @@ -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_",
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 470b658

Please sign in to comment.