This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse][taco] Support the use of index values in tensor expressions.
ClosedPublic

Authored by bixia on Mar 15 2022, 9:50 AM.

Details

Summary

PyTACO DSL doesn't support the use of index values as in A[i] = B[i]+ i.
We extend the DSL to support such a use in MLIR-PyTACO.

Remove an obsolete unit test. Add unit tests and PyTACO tests.

Diff Detail

Event Timeline

bixia created this revision.Mar 15 2022, 9:50 AM
Herald added a project: Restricted Project. · View Herald Transcript
bixia requested review of this revision.Mar 15 2022, 9:50 AM
bixia edited the summary of this revision. (Show Details)Mar 15 2022, 9:52 AM
aartbik accepted this revision.Mar 15 2022, 1:59 PM
aartbik added inline comments.
mlir/test/Integration/Dialect/SparseTensor/taco/test_simple_tensor_algebra.py
46

how about one test with a "conjunction" as well, so it is only done for the nonzeros?

H[i] = F[i] * i

This revision is now accepted and ready to land.Mar 15 2022, 1:59 PM
bixia updated this revision to Diff 415594.Mar 15 2022, 2:49 PM

Add a test for conjunction.

mlir/test/Integration/Dialect/SparseTensor/taco/test_simple_tensor_algebra.py
46

Good idea. Added