Skip to content

Commit

Permalink
Fixes #698
Browse files Browse the repository at this point in the history
When processing sequence of sequences, pass requested array data type
to numpy converter to ensure that the expected ValueError is raised
  • Loading branch information
oleksandr-pavlyk committed Dec 4, 2021
1 parent caec81c commit 9c7426f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpctl/tensor/_ctors.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def asarray(
_, dt, devs = _array_info_sequence(obj)
if devs == _host_set:
return _asarray_from_numpy_ndarray(
np.asarray(obj, dt, order=order),
np.asarray(obj, dtype=dtype, order=order),
dtype=dtype,
usm_type=usm_type,
sycl_queue=sycl_queue,
Expand Down

0 comments on commit 9c7426f

Please sign in to comment.