Skip to content

Commit 51e25ae

Browse files
Fix "Arrays are not equal" part 4 (#947)
Co-authored-by: Alexander-Makaryev <[email protected]>
1 parent 08a83df commit 51e25ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpnp/dpnp_iface_manipulation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def copyto(dst, src, casting='same_kind', where=True):
231231
232232
"""
233233

234-
dst_desc = dpnp.get_dpnp_descriptor(dst)
234+
dst_desc = dpnp.get_dpnp_descriptor(dst, copy_when_strides=False)
235235
src_desc = dpnp.get_dpnp_descriptor(src)
236236
if dst_desc and src_desc:
237237
if casting != 'same_kind':
@@ -248,6 +248,8 @@ def copyto(dst, src, casting='same_kind', where=True):
248248
pass
249249
elif dst_desc.shape != src_desc.shape:
250250
pass
251+
elif dst_desc.strides != src_desc.strides:
252+
pass
251253
else:
252254
return dpnp_copyto(dst_desc, src_desc, where=where)
253255

0 commit comments

Comments
 (0)