This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] add sparse tensor type conversion operation
ClosedPublic

Authored by aartbik on Jul 30 2021, 6:06 PM.

Details

Summary

Introduces a conversion from one (sparse) tensor type to another
(sparse) tensor type. See the operation doc for details. Actual
codegen for all cases is still TBD.

Diff Detail

Event Timeline

aartbik created this revision.Jul 30 2021, 6:06 PM
aartbik requested review of this revision.Jul 30 2021, 6:06 PM
ThomasRaoux added inline comments.Jul 30 2021, 6:18 PM
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
59

It can also convert from dense to sparse and sparse to dense right? The summary should be updated too.

ThomasRaoux accepted this revision.Jul 30 2021, 6:19 PM
This revision is now accepted and ready to land.Jul 30 2021, 6:19 PM
aartbik marked an inline comment as done.Jul 31 2021, 11:44 AM
aartbik added inline comments.
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
59

The explanation below talks about sparse vs non-sparse, but I tried to make it a bit more clear in description

aartbik updated this revision to Diff 363311.Jul 31 2021, 11:48 AM
aartbik marked an inline comment as done.

updated doc