This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Fix getUnorderedCOOFromType for rank 1 tensor.
ClosedPublic

Authored by bixia on Oct 20 2022, 3:38 PM.

Details

Summary

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

Diff Detail

Event Timeline

bixia created this revision.Oct 20 2022, 3:38 PM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.Oct 20 2022, 3:38 PM
bixia updated this revision to Diff 469383.Oct 20 2022, 3:43 PM

Push the fill op inside if (rank > 1)

wrengr accepted this revision.Oct 20 2022, 3:45 PM
This revision is now accepted and ready to land.Oct 20 2022, 3:45 PM
Peiming accepted this revision.Oct 20 2022, 3:47 PM
wrengr added inline comments.Oct 20 2022, 3:47 PM
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp
139

If I'm reading things right, shouldn't this TODO apply to the CompressedNu(No) level rather than the SingletonNuNo levels?

bixia updated this revision to Diff 469386.Oct 20 2022, 4:05 PM

Rebase.