The operation shape.shape_of now returns an extent tensor tensor<?xindex> in cases when no error are possible. All consuming operation will eventually accept both, shapes and extent tensors.
Depends On D84158
Paths
| Differential D84160
[MLIR][Shape] Allow for `shape_of` to return extent tensors ClosedPublic Authored by frgossen on Jul 20 2020, 5:32 AM.
Details Summary The operation shape.shape_of now returns an extent tensor tensor<?xindex> in cases when no error are possible. All consuming operation will eventually accept both, shapes and extent tensors. Depends On D84158
Diff Detail
Event TimelineComment Actions We should discuss whether we in the long run want to allow known-size tensors for known-rank inputs. Comment Actions
We should yes (that does make the above more complicated)
frgossen retitled this revision from [MLIR][Shape] Change type of `shape_of` from `shape` to extent tensor to [MLIR][Shape] Allow for `shape_of` to return extent tensors.Jul 21 2020, 6:55 AM frgossen added inline comments.
jpienaar marked an inline comment as done. jpienaar added inline comments.
This revision is now accepted and ready to land.Jul 23 2020, 2:32 PM Closed by commit rGd4e4d5d78044: [MLIR][Shape] Allow for `shape_of` to return extent tensors (authored by frgossen). · Explain WhyJul 24 2020, 1:41 AM This revision was automatically updated to reflect the committed changes. frgossen marked an inline comment as done.
Revision Contents
Diff 280363 mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Conversion/ShapeToSCF/shape-to-scf.mlir
mlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir
mlir/test/Dialect/Shape/canonicalize.mlir
mlir/test/Dialect/Shape/invalid.mlir
mlir/test/Dialect/Shape/ops.mlir
|
I don't understand the tuple part, did you mean type?