Lowering from the tosa.reshape op to linalg.reshape. For same-rank or
non-collapsed/expanded cases two linalg.reshapes are inserted.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@mravishankar can you review this? I'm not up to date on linalg.reshape (I recall it has some subtleties)
Comment Actions
Looks fine to me. Just a minor comment on some more tests.
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp | ||
---|---|---|
361 | rename srcShape to expandedShape (and dstShape to collapsedShape)? | |
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir | ||
263 | Could you add a test where there are multiple collapsing dimensions. So say 6D to 3D where {0, 1, 2) -> {0} , {3} -> {1} and {4, 5} -> {2} ? |
rename srcShape to expandedShape (and dstShape to collapsedShape)?