This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] assert fail on mismatch between rank and annotations array
ClosedPublic

Authored by aartbik on Feb 18 2021, 10:12 PM.

Details

Summary

Rationale:
Providing the wrong number of sparse/dense annotations was silently
ignored or caused unrelated crashes. This minor change verifies that
the provided number matches the rank.

Diff Detail

Event Timeline

aartbik created this revision.Feb 18 2021, 10:12 PM
aartbik requested review of this revision.Feb 18 2021, 10:12 PM
bixia accepted this revision.Feb 18 2021, 10:24 PM

Thanks for adding the asserts!

This revision is now accepted and ready to land.Feb 18 2021, 10:24 PM
This revision was landed with ongoing or failed builds.Feb 18 2021, 11:22 PM
This revision was automatically updated to reflect the committed changes.