Skip to content
Snippets Groups Projects
Commit 955ef2f0 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Accept different strides on numpy for newaxis

parent 68c1fd00
Branches
Tags
No related merge requests found
...@@ -860,7 +860,9 @@ def test_newaxis(ctx_factory): ...@@ -860,7 +860,9 @@ def test_newaxis(ctx_factory):
b = a[:, np.newaxis] b = a[:, np.newaxis]
assert b_gpu.shape == b.shape assert b_gpu.shape == b.shape
assert b_gpu.strides == b.strides for i in range(b.ndim):
if b.shape[i] > 1:
assert b_gpu.strides[i] == b.strides[i]
if __name__ == "__main__": if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment