This is only valid if the source tensors (result tensor) is static
shaped with all unit-extents when the reshape is collapsing
(expanding) dimensions.
Depends On D79763
Paths
| Differential D79764
[mlir][Linalg] Allow reshapes to collapse to a zero-rank tensor. ClosedPublic Authored by mravishankar on May 11 2020, 10:51 PM.
Details Summary This is only valid if the source tensors (result tensor) is static Depends On D79763
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 12 2020, 5:45 PM Closed by commit rGd2a956985016: [mlir][Linalg] Allow reshapes to collapse to a zero-rank tensor. (authored by mravishankar). · Explain WhyMay 12 2020, 11:09 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 263349 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/llvm.mlir
mlir/test/Dialect/Linalg/roundtrip.mlir
|