Repository navigation
Commit 021416f
committed
fix: use stride list length when broadcasting buffer strides
from_buffers broadcast the stride list with a modulo against
len(block_lengths); a shorter stride list would raise IndexError and a
longer one silently misaligned strides. Modulo against len(block_strides)
matches the length/stride broadcast pairs production registers.
Addresses the review finding on cache_layout.py.
Signed-off-by: zhaosusu <zhaosusu1@h-partners.com>1 parent e169af3 commit 021416f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments