This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Allow reshapes to collapse to a zero-rank tensor.
ClosedPublic

Authored by mravishankar on May 11 2020, 10:51 PM.

Details

Summary

This is only valid if the source tensors (result tensor) is static
shaped with all unit-extents when the reshape is collapsing
(expanding) dimensions.

Depends On D79763

Diff Detail

Event Timeline

mravishankar created this revision.May 11 2020, 10:51 PM
nicolasvasilache accepted this revision.May 12 2020, 5:45 PM

Looks good but please update the doc as appropriate.

This revision is now accepted and ready to land.May 12 2020, 5:45 PM

Addressing comments

This revision was automatically updated to reflect the committed changes.