This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Fix and improve vectorization of depthwise convolutions.
ClosedPublic

Authored by nicolasvasilache on Nov 15 2021, 4:05 AM.

Details

Summary

When trying to connect the vectorization of depthwise convolutions to e2e execution
a number of problems surfaced.
Fix an off-by-one error on the size of the input vector (similary to what was previously done for regular conv).
Rewrite the lowering to vector.fma instead of vector.contract: the KW reduction dimension has already been unrolled and vector.contract requires a reduciton dimension.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Nov 15 2021, 4:05 AM

Fix typo in test.

ftynse accepted this revision.Nov 15 2021, 4:59 AM
This revision is now accepted and ready to land.Nov 15 2021, 4:59 AM
This revision was landed with ongoing or failed builds.Nov 15 2021, 5:03 AM
This revision was automatically updated to reflect the committed changes.