Empty extent tensor operands were only removed when they were defined as a
constant. Additionally, we can remove them if they are known to be empty by
their type tensor<0xindex>.
Depends On D101350
Paths
| Differential D101351
[MLIR][Shape] Remove empty extent tensor operands ClosedPublic Authored by frgossen on Apr 27 2021, 3:15 AM.
Details Summary Empty extent tensor operands were only removed when they were defined as a Depends On D101350
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 27 2021, 3:19 AM This revision was landed with ongoing or failed builds.Apr 27 2021, 5:52 AM Closed by commit rGf8d7bd996f1e: [MLIR][Shape] Remove empty extent tensor operands (authored by frgossen). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 340809 mlir/include/mlir/IR/BuiltinAttributes.h
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/canonicalize.mlir
|
empty()?