The operation num_elements determines the number of elements for a given
shape.
That is the product of its dimensions.
A tensor of the given shape holds this many elements.
Depends On D80280
Paths
| Differential D80281
[MLIR] Add `num_elements` to the shape dialect ClosedPublic Authored by frgossen on May 20 2020, 2:08 AM.
Details Summary The operation num_elements determines the number of elements for a given Depends On D80280
Diff Detail
Event Timelinefrgossen added a child revision: D80283: [MLIR] Fix operand type in `from_extent_tensor` in the shape dialect.May 20 2020, 2:19 AM This revision is now accepted and ready to land.May 20 2020, 4:30 PM Closed by commit rGfdaa391e3df3: [MLIR] Add `num_elements` to the shape dialect (authored by frgossen). · Explain WhyMay 28 2020, 7:35 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 265172 mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/canonicalize.mlir
|
Seems redundant with the previous line?