Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Jul 13, 2024
1 parent 0a56c44 commit faa1f8a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ivy/functional/frontends/paddle/tensor/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ def __rdiv__(self, y, /, name=None):
def __int__(self):
return int(self._ivy_array)

@with_supported_dtypes({"2.5.2 and below": ("float32", "float64")}, "paddle")
def __div__(self, y, name="div"):
if "int" in self._ivy_array.dtype:
return paddle_frontend.math.floor_divide(x=self, y=y, name=name)
ret = paddle_frontend.math.divide(self, y, name=name)
return paddle_frontend.cast(ret, self.dtype)
@with_unsupported_dtypes(
{"2.6.1 and below": ("bool", "unsigned", "int8", "float16", "bfloat16")},
"paddle",
)
def __div__(self, y, name=None):
return paddle_frontend.math.divide(self, y, name=name)

# Instance Methods #
# ---------------- #
Expand Down

0 comments on commit faa1f8a

Please sign in to comment.