Skip to content

Commit

Permalink
🤖 Lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-branch committed Sep 27, 2023
1 parent 020677a commit e9d1a94
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions ivy/functional/frontends/paddle/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,25 @@ def deg2rad(x, name=None):
return ivy.deg2rad(x)


@with_supported_dtypes(
{
"2.5.1 and below": (
"int32",
"int64",
"float64",
"complex128",
"float32",
"complex64",
"bool",
)
},
"paddle",
)
@to_ivy_arrays_and_back
def diagonal(x, offset=0, axis1=0, axis2=1, name=None):
return ivy.diagonal(x, offset=offset, axis1=axis1, axis2=axis2)


@with_supported_dtypes(
{"2.5.1 and below": ("float32", "float64", "int32", "int64")}, "paddle"
)
Expand Down Expand Up @@ -539,22 +558,3 @@ def tanh(x, name=None):
@to_ivy_arrays_and_back
def trunc(x, name=None):
return ivy.trunc(x)


@with_supported_dtypes(
{
"2.5.1 and below": (
"int32",
"int64",
"float64",
"complex128",
"float32",
"complex64",
"bool",
)
},
"paddle",
)
@to_ivy_arrays_and_back
def diagonal(x, offset=0, axis1=0, axis2=1, name=None):
return ivy.diagonal(x, offset=offset, axis1=axis1, axis2=axis2)

0 comments on commit e9d1a94

Please sign in to comment.