[mlir][sparse] Only insert non-zero values to the result of the concatenate operation.
authorbixia1 <bixia@google.com>
Tue, 15 Nov 2022 18:52:57 +0000 (10:52 -0800)
committerbixia1 <bixia@google.com>
Tue, 15 Nov 2022 19:52:52 +0000 (11:52 -0800)
commit13c41757b104153c3dcdfc14e5d6a7194b3683e6
tree963df494bc428e807765857160aea973a8367cac
parentc3821e1684c89c7f10eecfd30763a86b2738ed65
[mlir][sparse] Only insert non-zero values to the result of the concatenate operation.

Modify the integration test to check number_of_entries and use it to limit for
outputing sparse tensor values.

Reviewed By: aartbik, Peiming

Differential Revision: https://reviews.llvm.org/D138046
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
mlir/test/Integration/Dialect/SparseTensor/CPU/concatenate.mlir