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 891f135 commit 65743f0Copy full SHA for 65743f0
dpnp/tests/third_party/cupy/testing/_array.py
@@ -171,13 +171,14 @@ def assert_array_equal(
171
)
172
173
if strides_check:
174
- if actual.strides != desired.strides:
+ strides = tuple(el // desired.itemsize for el in desired.strides)
175
+ if actual.strides != strides:
176
msg = ["Strides are not equal:"]
177
if err_msg:
178
msg = [msg[0] + " " + err_msg]
179
if verbose:
180
msg.append(" x: {}".format(actual.strides))
- msg.append(" y: {}".format(desired.strides))
181
+ msg.append(" y: {}".format(strides))
182
raise AssertionError("\n".join(msg))
183
184
0 commit comments