[mlir][sparse] Fix getUnorderedCOOFromType for rank 1 tensor.
authorbixia1 <bixia@google.com>
Thu, 20 Oct 2022 22:43:03 +0000 (15:43 -0700)
committerbixia1 <bixia@google.com>
Thu, 20 Oct 2022 23:33:01 +0000 (16:33 -0700)
commitcf7906cbbdd50cc414c1df40f149c3aaf7a56cba
tree9c5bb7c771a5b104d5df4d5195f8796143936736
parentf1190bc0db9bd3faacd302757426d7d1ab45ed9d
[mlir][sparse] Fix getUnorderedCOOFromType for rank 1 tensor.

Previously, it used DimLevelType::SingletonNo to represent an unorder COO
tensor of rank 1 while it should use DimLevelType::CompressedNuNo.

Reviewed By: Peiming, wrengr

Differential Revision: https://reviews.llvm.org/D136387
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp