Skip to content

Commit

Permalink
fix: fix is_empty in paddle frontend and specify some unsupported typ…
Browse files Browse the repository at this point in the history
…es (#28536)
  • Loading branch information
ZJay07 committed Mar 16, 2024
1 parent 9f9bd53 commit 7ff5fa0
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions ivy/functional/frontends/paddle/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,26 @@ def greater_than(x, y, /, *, name=None):


@with_unsupported_dtypes(
{"2.6.0 and below": ("uint8", "int8", "int16", "complex64", "complex128")},
{
"2.6.0 and below": (
"uint8",
"int8",
"int16",
"complex64",
"complex128",
"bool",
"float16",
"bfloat16",
)
},
"paddle",
)
@to_ivy_arrays_and_back
def is_empty(x, name=None):
return ivy.is_empty(x)
if 0 in ivy.shape(x):
return ivy.array(True)
else:
return ivy.array(False)


@to_ivy_arrays_and_back
Expand Down

0 comments on commit 7ff5fa0

Please sign in to comment.