This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] improve sparse attribute documentation
ClosedPublic

Authored by aartbik on Aug 8 2022, 10:57 AM.

Details

Summary

Moved some parts from comments (not user facing) to the actual description
(user facing). Rephrased a bit as well.

Diff Detail

Event Timeline

aartbik created this revision.Aug 8 2022, 10:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 10:57 AM
aartbik requested review of this revision.Aug 8 2022, 10:57 AM
Peiming accepted this revision.Aug 8 2022, 12:16 PM
This revision is now accepted and ready to land.Aug 8 2022, 12:16 PM
vmrajas added inline comments.Aug 8 2022, 12:45 PM
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td
38

Adding "(unique)" after compressed could end up confusing users. It could either mean that:

  1. "unique" can be used interchangeably with "compressed".
  2. only unique elements are stored.
  3. The can be used only when elements in the tensor are unique.

Can we remove "(unique)" here and may be add more explanation at the end of this note. (after "no duplicates.")

42

support --> supported

aartbik marked an inline comment as done.Aug 8 2022, 1:14 PM
aartbik added inline comments.
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td
38

But this is TACO terminology. They use compressed (U) and compressed (not U) for this, even though compressed is the user facing keyword. But I changed it as you requested.

aartbik updated this revision to Diff 450917.Aug 8 2022, 1:17 PM

addressed comments

This revision was landed with ongoing or failed builds.Aug 8 2022, 1:21 PM
This revision was automatically updated to reflect the committed changes.