Skip to content

Commit c3655ed

Browse files
committed
Fixes a typo when making NumPy array interface from a boolean array in from_dlpack
1 parent d393950 commit c3655ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_dlpack.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ cdef dict _numpy_array_interface_from_dl_tensor(DLTensor *dlt, bint ro_flag):
659659
elif (dlt.dtype.code == kDLComplex):
660660
ary_dt = "c" + str(itemsize)
661661
elif (dlt.dtype.code == kDLBool):
662-
ary_dt = np.dtype("?")
662+
ary_dt = "b" + str(itemsize)
663663
else:
664664
raise BufferError(
665665
"Can not import DLPack tensor with type code {}.".format(

0 commit comments

Comments
 (0)