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 af34900 commit 18fe837Copy full SHA for 18fe837
dpnp/tests/third_party/cupy/testing/_array.py
@@ -171,7 +171,11 @@ def assert_array_equal(
171
)
172
173
if strides_check:
174
- strides = tuple(el // desired.itemsize for el in desired.strides)
+ strides = desired.strides
175
+ if isinstance(actual, cupy.ndarray):
176
+ # need to agreed the strides with numpy.ndarray
177
+ strides = tuple(el // desired.itemsize for el in desired.strides)
178
+
179
if actual.strides != strides:
180
msg = ["Strides are not equal:"]
181
if err_msg:
0 commit comments