This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Add tosa.depthwise lowering to existing linalg.depthwise_conv
ClosedPublic

Authored by rsuderman on Apr 29 2021, 2:54 PM.

Details

Summary

Implements support for undialated depthwise convolution using the existing
depthwise convolution operation. Once convolutions migrate to yaml defined
versions we can rewrite for cleaner implementation.

Diff Detail

Event Timeline

rsuderman created this revision.Apr 29 2021, 2:54 PM
rsuderman requested review of this revision.Apr 29 2021, 2:54 PM
mravishankar accepted this revision.May 5 2021, 8:46 AM

It seems like some transposes are introduced to account for the variant of convolution seen in TOSA. Is the plan to eventually have that as a named op without having to do the transpose?

This revision is now accepted and ready to land.May 5 2021, 8:46 AM

It seems like some transposes are introduced to account for the variant of convolution seen in TOSA. Is the plan to eventually have that as a named op without having to do the transpose?

Yes that is the plan. At this point I am waiting on named ops transitioning from TC to YAML.

rsuderman updated this revision to Diff 343166.May 5 2021, 1:29 PM

Updated reshape in tests.

This revision was landed with ongoing or failed builds.May 5 2021, 1:32 PM
This revision was automatically updated to reflect the committed changes.