Do not compose pad tensor operations if the extract slice of the outer pad tensor operation is rank reducing. The inner extract slice op cannot be rank-reducing since it source type must match the desired type of the padding.
Depends On D115359
Paths
| Differential D115428
[mlir][linalg] Only compose PadTensorOps if no ExtractSliceOp is rank-reducing. ClosedPublic Authored by gysit on Dec 8 2021, 11:53 PM.
Details Summary Do not compose pad tensor operations if the extract slice of the outer pad tensor operation is rank reducing. The inner extract slice op cannot be rank-reducing since it source type must match the desired type of the padding. Depends On D115359
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 21 others. · View Herald TranscriptDec 8 2021, 11:53 PM This revision is now accepted and ready to land.Dec 13 2021, 1:18 AM This revision was landed with ongoing or failed builds.Dec 13 2021, 5:08 AM Closed by commit rGdb7a2e9176e8: [mlir][linalg] Only compose PadTensorOps if no ExtractSliceOp is rank-reducing. (authored by gysit). · Explain Why This revision was automatically updated to reflect the committed changes.
Diff 393857 mlir/lib/Dialect/Linalg/Utils/Utils.cpp
mlir/test/Dialect/Linalg/pad.mlir
|