The TosaInferShapes pass avoids updating the shapes of tensor operators
when the consumers are not TOSA operations, limiting the efficacy of
TosaInferShapes when the IR is a mix of TOSA and other operations.
This change attempts to update the result shapes when the consumers
themselves have reasonable type/shape inference methods.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
One minor change, otherwise it looks good to me.
mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp | ||
---|---|---|
240–241 | This comment doesn't apply with your change. I'd say to get rid of it in favor of the more accurate comment above. |
This comment doesn't apply with your change. I'd say to get rid of it in favor of the more accurate comment above.