This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] adjust output tensor to synthetic tensor
ClosedPublic

Authored by aartbik on Dec 21 2020, 1:45 PM.

Details

Summary

Fixes a merge conflict with previous two CLs.

Diff Detail

Event Timeline

aartbik created this revision.Dec 21 2020, 1:45 PM
aartbik requested review of this revision.Dec 21 2020, 1:45 PM

I dont have full (or any for that matter) context on the sparsification work, but are you setting the t to be "out-of-bounds" of the operand index values?

mravishankar accepted this revision.Dec 21 2020, 2:03 PM
This revision is now accepted and ready to land.Dec 21 2020, 2:03 PM

I dont have full (or any for that matter) context on the sparsification work, but are you setting the t to be "out-of-bounds" of the operand index values?

See comment at the merger constructor. We reserve one extra one for a "synthetic" tensor, that is reserved for all invariants.
I used to borrow the output tensor for that, but thought it was less clean. I will actually introduce symbolics for this to avoid the problem in the future.

aartbik edited the summary of this revision. (Show Details)Dec 21 2020, 2:07 PM
This revision was automatically updated to reflect the committed changes.