-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CanonicalizeDoublyStridedOp] Fix for interleaved unit and linear dims (
#564) Fixes an issue exposed by a 128x32x64 matmul: #556. In the case of a strided pattern like: ``` offsets: [0, 0, 0, 0] sizes: [2, 1, 64, 64] strides: [4096, 64, 64, 1] ``` the unit dimension (size == 1) in the middle will block the recognition that this is a linear access pattern, resulting in the following canonicalized strided pattern: ``` offsets: [0, 0] sizes: [2, 4096] strides: [4096, 1] ``` If the unit dimension is first removed, the strided pattern can be canonicalized further: ``` offsets: [] sizes: [] strides: [] ``` meaning a complete linear access. NOTE: with this fix the above matmul shape is still not functional, but exhibits the same behaviour as `128x32x128` etc
- Loading branch information
Showing
2 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters