Lowers the transpose operation to a generic linalg op when permutations
is a constant value.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This one is probably better rewritten as a linalg.copy with the proper permutations (at least until we have the generic -> named ops inference).
This would require making CopyOp work on tensors. @rsuderman do you think you can make that change? Not a requirement though, this would be fine as is....
Few minor comments below.
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp | ||
---|---|---|
365 | Does TOSA op only support static shapes. If not then you need to have a way to get the dynamic values for the non-static dimensions. | |
375 | I dont think you need to do ValueRange{...} . Just op.input1() should work, |
Made the minor changes possible. Deferring on the CopyOp changes as lack of tensor support is outside the scope of TOSA work. If I have some time I will look into updating linalg.copy
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp | ||
---|---|---|
365 | I'm only supporting static shapes for now to get things bootstrapped. Once we have more dynamic cases we can swing back around to dynamic support. |
Does TOSA op only support static shapes. If not then you need to have a way to get the dynamic values for the non-static dimensions.