Take advantage of the new dynamic_tensor_from_elements operation in std.
Instead of stack-allocated memory, we can now lower directly to a single std
operation.
Depends On D86779
Paths
| Differential D86935
[MLIR][Shape] Lower `shape_of` to `dynamic_tensor_from_elements` ClosedPublic Authored by frgossen on Sep 1 2020, 6:29 AM.
Details Summary Take advantage of the new dynamic_tensor_from_elements operation in std. Depends On D86779
Diff Detail
Event TimelineHerald added subscribers: stephenneuendorffer, nicolasvasilache. · View Herald TranscriptSep 1 2020, 6:29 AM Comment Actions Mostly nits. Thanks for adding this!
This revision now requires changes to proceed.Sep 1 2020, 8:49 AM jpienaar added inline comments.
frgossen marked 7 inline comments as done. Comment ActionsAddress comments
Closed by commit rG5106a8b8f8d0: [MLIR][Shape] Lower `shape_of` to `dynamic_tensor_from_elements` (authored by frgossen). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 290657 mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir
|
Nit: could you add a comment here? (just basic tblgen one as I don't think we have way to generate comments in C++ from here yet)