This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] refine trait of sparse_tensor.convert
ClosedPublic

Authored by aartbik on Oct 26 2021, 2:17 PM.

Details

Summary

Rationale:
The currently used trait was demanding that all types are the same
which is not true (since the sparse part may change and the dim sizes
may be relaxed). This revision uses the correct trait and makes the
rank match test explicit in the verify method.

Diff Detail

Event Timeline

aartbik created this revision.Oct 26 2021, 2:17 PM
aartbik requested review of this revision.Oct 26 2021, 2:17 PM
ftynse accepted this revision.Oct 26 2021, 2:33 PM
This revision is now accepted and ready to land.Oct 26 2021, 2:33 PM
This revision was automatically updated to reflect the committed changes.