This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Make padding work for rank-reducing slice ops.
ClosedPublic

Authored by gysit on Dec 8 2021, 5:47 AM.

Details

Summary

Adapt the computation of a static bounding box to take rank-reducing slice operations into account by filtering out reduced size one dimensions. The revision is needed to make padding work for decomposed convolution operations. The decomposition introduces rank reducing extract slice operations that previously let padding fail.

Diff Detail

Event Timeline

gysit created this revision.Dec 8 2021, 5:47 AM
gysit requested review of this revision.Dec 8 2021, 5:47 AM
gysit updated this revision to Diff 393075.Dec 9 2021, 2:12 AM

Use helper to compute the dropped dimensions.

gysit edited the summary of this revision. (Show Details)Dec 9 2021, 2:15 AM
nicolasvasilache accepted this revision.Dec 13 2021, 1:15 AM

Nice catch, thanks!

This revision is now accepted and ready to land.Dec 13 2021, 1:15 AM