Skip to content

Commit a41a494

Browse files
Apply remark
1 parent 8d4b426 commit a41a494

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpnp/dpnp_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _unwrap_index_element(x):
7474
arr = numpy.asarray(x)
7575
# cast empty arrays (float64 in NumPy) to intp
7676
# for correct tensor indexing
77-
if arr.size == 0 and arr.dtype.kind == "f":
77+
if arr.size == 0:
7878
arr = arr.astype(numpy.intp)
7979
return arr
8080

0 commit comments

Comments
 (0)