The pattern generalizes a tensor::PackOp into a sequence of tensor +
Linalg ops, when the outer dims are all 1s. It uses the trick of
rank-reduced tensor.extract_slice to get the tile; transpose the tile;
use tensor.insert_slice to insert it to the destination of inner tile.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp | ||
---|---|---|
532 | Nit: typo |
mlir/test/Dialect/Linalg/generalize-tensor-pack.mlir | ||
---|---|---|
64–65 | Please do not insert "RUN" lines in the middle of the test file, these are really annoying to find if something goes wrong. Just create a new file instead. Filecheck tests are very cheap. |
Nit: typo