Skip to content

Commit 333f9e6

Browse files
Fixed error from dpt.flip(dpt.arange(5))[dpt.arange(2)]
1 parent 728b8e6 commit 333f9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_slicing.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _basic_slice_meta(ind, shape : tuple, strides : tuple, offset : int):
9494
"Index {0} is out of range for axes 0 with "
9595
"size {1}".format(ind, shape[0]))
9696
elif isinstance(ind, usm_ndarray):
97-
return (shape, strides, 0, (ind,), 0)
97+
return (shape, strides, offset, (ind,), 0)
9898
elif isinstance(ind, tuple):
9999
axes_referenced = 0
100100
ellipses_count = 0

0 commit comments

Comments
 (0)