UnpackOp Converter used to create reallocOp unconditionally, but it might cause issue when the requested memory size is smaller than the actually storage.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D144065
[mlir][sparse] fix a bug in UnpackOp converter. ClosedPublic Authored by Peiming on Feb 14 2023, 6:19 PM.
Details Summary UnpackOp Converter used to create reallocOp unconditionally, but it might cause issue when the requested memory size is smaller than the actually storage.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 14 2023, 6:22 PM
This revision was landed with ongoing or failed builds.Feb 14 2023, 6:36 PM Closed by commit rG81cb70e46ea1: [mlir][sparse] fix a bug in UnpackOp converter. (authored by Peiming). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 497516 mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
mlir/test/Dialect/SparseTensor/sparse_pack.mlir
|
this should be in the "helper methods" section, and have a comment