Skip to content

Commit 7039edc

Browse files
committed
fix: handle empty tensors correctly in paddle.manipulation tile
1 parent 663d039 commit 7039edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ivy/functional/backends/paddle/manipulation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def tile(
365365
) -> paddle.Tensor:
366366
repeats = repeats.tolist() if isinstance(repeats, paddle.Tensor) else list(repeats)
367367
# Paddle doesn't natively support repeats containing zeros
368-
if len(repeats) > 0 and min(repeats) == 0:
368+
if 0 in x.shape or (len(repeats) > 0 and min(repeats) == 0):
369369
if x.ndim == 0:
370370
shape = repeats
371371
elif len(repeats) <= x.ndim:

0 commit comments

Comments
 (0)