When the origin of a shape is an extent tensor the operation get_extent can be
lowered directly to extract_element.
This choice circumvents the necessity to materialize the shape in memory.
Depends On D82644
Paths
| Differential D82645
[MLIR][Shape] Lower `shape.get_extent` to `extract_element` when possible ClosedPublic Authored by frgossen on Jun 26 2020, 5:03 AM.
Details Summary When the origin of a shape is an extent tensor the operation get_extent can be Depends On D82644
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 26 2020, 5:14 AM Closed by commit rGd876e3202af3: [MLIR][Shape] Lower `shape.get_extent` to `extract_element` when possible (authored by frgossen). · Explain WhyJun 29 2020, 2:07 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 273680 mlir/lib/Conversion/ShapeToStandard/ShapeToStandardPatterns.td
mlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir
|