Add UnitAttr inbounds for this purpose.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D134913
[mlir][sparse] Allow the push_back operator to skip capacity check and reallocation. ClosedPublic Authored by bixia on Sep 29 2022, 2:51 PM.
Details Summary Add UnitAttr inbounds for this purpose.
Diff Detail
Event Timelineaartbik added inline comments. This revision is now accepted and ready to land.Sep 29 2022, 3:08 PM Closed by commit rG1c835b5a8e56: [mlir][sparse] Allow the push_back operator to skip capacity check and… (authored by bixia). · Explain WhySep 29 2022, 4:38 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 464075 mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp
mlir/test/Dialect/SparseTensor/buffer_rewriting.mlir
mlir/test/Dialect/SparseTensor/roundtrip.mlir
|
Make a comment that the typical usage will be for "dynamic" sparse tensors for which a capacity can be set beforehand