Skip to content

Commit 8ab92e1

Browse files
committed
fix typo in astype logic for boolean input
pass copy_order, not order
1 parent f791949 commit 8ab92e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_copy_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ def astype(
741741
)
742742
# see #2121
743743
if ary_dtype == dpt.bool:
744-
usm_ary = dpt.not_equal(usm_ary, 0, order=order)
744+
usm_ary = dpt.not_equal(usm_ary, 0, order=copy_order)
745745
_copy_from_usm_ndarray_to_usm_ndarray(R, usm_ary)
746746
return R
747747

0 commit comments

Comments
 (0)