This commit exposes an option to the pattern
FoldWithProducerReshapeOpByExpansion to allow
folding unit dim reshapes. This gives callers
more fine-grained controls.
Depends On D99016
Paths
| Differential D99114
[mlir][linalg] Allow controlling folding unit dim reshapes ClosedPublic Authored by antiagainst on Mar 22 2021, 2:47 PM.
Details Summary This commit exposes an option to the pattern Depends On D99016
Diff Detail
Event TimelineHerald added subscribers: dcaballe, cota, mravishankar and 16 others. · View Herald TranscriptMar 22 2021, 2:47 PM antiagainst added a child revision: D99115: [mlir][linalg] Support dropping unit dimensions for init tensors.Mar 22 2021, 2:48 PM This revision is now accepted and ready to land.Mar 22 2021, 10:40 PM This revision was landed with ongoing or failed builds.Mar 24 2021, 3:19 PM Closed by commit rG7f28d27cb614: [mlir][linalg] Allow controlling folding unit dim reshapes (authored by antiagainst). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions same discussion as in another CL, subview/subtensor/subtensor_insert has nicer inplace semantics than reshape
Revision Contents
Diff 332436 mlir/include/mlir/Dialect/Linalg/Passes.h
mlir/include/mlir/Dialect/Linalg/Passes.td
mlir/lib/Dialect/Linalg/Transforms/FusionOnTensors.cpp
mlir/test/Dialect/Linalg/reshape_fusion.mlir
|