Skip to content

Commit

Permalink
fix: handle empty tensors correctly in paddle.manipulation tile
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksondm33 committed Apr 4, 2024
1 parent 1ea324a commit 7649f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/paddle/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def tile(
) -> paddle.Tensor:
repeats = repeats.tolist() if isinstance(repeats, paddle.Tensor) else list(repeats)
# Paddle doesn't natively support repeats containing zeros
if len(repeats) > 0 and min(repeats) == 0:
if 0 in x.shape or (len(repeats) > 0 and min(repeats) == 0):
if x.ndim == 0:
shape = repeats
elif len(repeats) <= x.ndim:
Expand Down

0 comments on commit 7649f44

Please sign in to comment.