We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a101c commit 33e4bf5Copy full SHA for 33e4bf5
dpnp/dpnp_iface.py
@@ -133,7 +133,8 @@ def asnumpy(input, order='C'):
133
134
"""
135
if config.__DPNP_OUTPUT_DPCTL__ and hasattr(input, "__sycl_usm_array_interface__"):
136
- return np_st.as_strided(input.usm_data.copy_to_host().view(input.dtype), shape=input.shape)
+ strides = (x * input.itemsize for x in input.strides)
137
+ return np_st.as_strided(input.usm_data.copy_to_host().view(input.dtype), shape=input.shape, strides=strides)
138
139
return numpy.asarray(input, order=order)
140
0 commit comments