This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][python] Add shape-only tensor support to OpDSL.
ClosedPublic

Authored by gysit on Jun 23 2021, 1:50 AM.

Details

Summary

Add an index_dim annotation to specify the shape to loop mapping of shape-only tensors. A shape-only tensor serves is not accessed withing the body of the operation but is required to span the iteration space of certain operations such as pooling.

Diff Detail

Event Timeline

gysit created this revision.Jun 23 2021, 1:50 AM
gysit requested review of this revision.Jun 23 2021, 1:50 AM
nicolasvasilache accepted this revision.Jun 24 2021, 1:24 AM
This revision is now accepted and ready to land.Jun 24 2021, 1:24 AM
gysit updated this revision to Diff 354238.Jun 24 2021, 6:39 AM

Rebase.

This revision was landed with ongoing or failed builds.Jun 24 2021, 7:12 AM
This revision was automatically updated to reflect the committed changes.