This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] preserve zero-initialization for materializing buffers
ClosedPublic

Authored by aartbik on Sep 24 2021, 1:16 PM.

Details

Summary

This revision makes sure that when the output buffer materializes locally
(in contrast with the passing in of output tensors either in-place or not
in-place), the zero initialization assumption is preserved. This also adds
a bit more documentation on our sparse kernel assumption (viz. TACO
assumptions).

Diff Detail

Event Timeline

aartbik created this revision.Sep 24 2021, 1:16 PM
aartbik requested review of this revision.Sep 24 2021, 1:16 PM
aartbik updated this revision to Diff 374970.Sep 24 2021, 3:05 PM

rebase with main

bixia added inline comments.Sep 24 2021, 3:16 PM
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
396

s/any a/any/

aartbik marked an inline comment as done.Sep 24 2021, 4:05 PM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
396

Note that it was any "a priori" but since this is confusing, I rephrased

aartbik updated this revision to Diff 374982.Sep 24 2021, 4:11 PM
aartbik marked an inline comment as done.

rephrased doc

aartbik updated this revision to Diff 375308.Sep 27 2021, 9:44 AM

rebased with main

bixia accepted this revision.Sep 27 2021, 11:19 AM
This revision is now accepted and ready to land.Sep 27 2021, 11:19 AM