This is an archive of the discontinued LLVM Phabricator instance.

[mlir][OpDSL] Support pointwise ops with rank zero inputs.
ClosedPublic

Authored by gysit on Mar 2 2022, 3:24 AM.

Details

Summary

Allow pointwise operations to take rank zero input tensors similarly to scalar inputs. Use an empty indexing map to broadcast rank zero tensors to the iteration domain of the operation.

Depends On D120734

Diff Detail

Event Timeline

gysit created this revision.Mar 2 2022, 3:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 3:24 AM
gysit requested review of this revision.Mar 2 2022, 3:24 AM
nicolasvasilache accepted this revision.Mar 8 2022, 9:02 AM
This revision is now accepted and ready to land.Mar 8 2022, 9:02 AM
gysit updated this revision to Diff 413834.Mar 8 2022, 9:28 AM

Fix warning.

This revision was landed with ongoing or failed builds.Mar 8 2022, 9:40 AM
This revision was automatically updated to reflect the committed changes.