Reshaping an init_tensor can be folded to a init_tensor op of the
final type.
Depends On D93748
Paths
| Differential D93773
[mlir][Linalg] Fold init_tensor -> linalg.tensor_reshape. ClosedPublic Authored by mravishankar on Dec 23 2020, 12:46 PM.
Details Summary Reshaping an init_tensor can be folded to a init_tensor op of the Depends On D93748
Diff Detail
Event TimelineHerald added subscribers: teijeong, rdzhabarov, tatianashp and 14 others. · View Herald TranscriptDec 23 2020, 12:46 PM
This revision now requires changes to proceed.Dec 28 2020, 10:53 AM
mravishankar added inline comments.
This revision is now accepted and ready to land.Jan 10 2021, 11:40 PM Closed by commit rG9c0dc0b2c1cc: [mlir][Linalg] Fold init_tensor -> linalg.tensor_reshape. (authored by mravishankar). · Explain WhyJan 11 2021, 9:23 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 315520 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
|
This looks weird, how about renaming it to shape?