Commit ef51f56
committed
FIX: For stride == 1 axes, require len > 1 to determine C/F preference
The issue was that otherwise, this array:
shape: [1, 256]
strides: [1, 256]
Which was "correctly" determined to be F-preference because it's
sliced out of an f-order array. In reality it is discontiguous; every
element is 256 steps from the next. This should have layout None, the
same as this array would have (ignoring 1-len axes).
shape: [256]
strides: [256]1 parent 5a25def commit ef51f56
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments