Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dpctl/tensor/_copy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,9 @@ def astype(
order=copy_order,
buffer_ctor_kwargs={"queue": usm_ary.sycl_queue},
)
# see #2121
if ary_dtype == dpt.bool:
usm_ary = dpt.not_equal(usm_ary, 0, order=order)
_copy_from_usm_ndarray_to_usm_ndarray(R, usm_ary)
return R

Expand Down