Skip to content

Commit 57033b0

Browse files
committed
Removes malformed fast path for size-zero arrays in repeat
1 parent c994666 commit 57033b0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dpctl/tensor/_manipulation_functions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -838,9 +838,6 @@ def repeat(x, repeats, /, *, axis=None):
838838
f"got {type(repeats)}"
839839
)
840840

841-
if axis_size == 0:
842-
return dpt.empty(x_shape, dtype=x.dtype, sycl_queue=exec_q)
843-
844841
if scalar:
845842
res_axis_size = repeats * axis_size
846843
if axis is not None:

0 commit comments

Comments
 (0)