Currently limited to constant pad values. Any combination of dynamic/static tensor sizes and padding sizes is supported.
Depends On D103590
Paths
| Differential D103679
[mlir][linalg] Lower PadTensorOp to InitTensorOp + FillOp + SubTensorInitOp ClosedPublic Authored by springerm on Jun 4 2021, 2:51 AM.
Details Summary Currently limited to constant pad values. Any combination of dynamic/static tensor sizes and padding sizes is supported. Depends On D103590
Diff Detail
Event Timeline
springerm added inline comments. nicolasvasilache added inline comments.
This revision is now accepted and ready to land.Jun 4 2021, 7:43 AM This revision was landed with ongoing or failed builds.Jun 13 2021, 10:26 PM Closed by commit rG98fff5153a81: [mlir][linalg] Lower PadTensorOp to InitTensorOp + FillOp + SubTensorInitOp (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes. springerm marked an inline comment as done.
Revision Contents
Diff 351772 mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
mlir/test/Dialect/Linalg/vectorization.mlir
|
The key reason why this pattern is needed here is that it triggers vectorization on subtensor_insert (which is generally undesirable because bufferization generally makes them go away for free).
Please document this.