Skip to content
Snippets Groups Projects
Commit 7f223a5626da authored by Kurt Smith's avatar Kurt Smith
Browse files

fix in memoryviewslice src_conforms_to_dst

parent 0802ca38ad94
Branches
No related tags found
No related merge requests found
......@@ -151,4 +151,5 @@
Any packing/access spec is conformable to itself.
'direct' and 'ptr' are conformable to 'full'.
'contig' and 'follow' are conformable to 'strided'.
......@@ -154,7 +155,4 @@
'contig' and 'follow' are conformable to 'strided'.
'direct' and 'ptr' are conformable to 'full'.
Any other combo is not conformable.
'''
......@@ -166,5 +164,5 @@
for src_spec, dst_spec in zip(src.axes, dst.axes):
src_access, src_packing = src_spec
dst_access, dst_packing = dst_spec
if src_access != dst_access and dst_access != 'strided':
if src_access != dst_access and dst_access != 'full':
return False
......@@ -170,5 +168,5 @@
return False
if src_packing != dst_packing and dst_packing != 'full':
if src_packing != dst_packing and dst_packing != 'strided':
return False
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment