This is an archive of the discontinued LLVM Phabricator instance.

Adding a new variant of DepthwiseConv2D
ClosedPublic

Authored by gpetters94 on Jun 24 2022, 10:30 PM.

Details

Summary

This is the same as the existing multiplier-1 variant of DepthwiseConv2D, but in PyTorch dim order.

Diff Detail

Event Timeline

gpetters94 created this revision.Jun 24 2022, 10:30 PM
gpetters94 requested review of this revision.Jun 24 2022, 10:30 PM
nicolasvasilache accepted this revision.Jun 26 2022, 6:08 AM
This revision is now accepted and ready to land.Jun 26 2022, 6:08 AM

Please add a test case as well for the new op.

Please add a test case as well for the new op.

I noticed the previous update to this yaml file also missed adding a test case: bc07634b5a762686b818932eb350b4fc84217e67

Please add a test case as well for the new op.

I noticed the previous update to this yaml file also missed adding a test case: bc07634b5a762686b818932eb350b4fc84217e67

Oh, right. Should I just add the test case for that op here, or should I make a separate patch for it?

Added tests for this op, as well as for my previous op (grouped conv) that has already landed.

@MaheshRavishankar -- is there a risk that this op will be optimized worse due to not being recognized as well as the regular depthwise?

@MaheshRavishankar -- is there a risk that this op will be optimized worse due to not being recognized as well as the regular depthwise?

Thats a separate concern (and if IIUC a concern more related to IREE and not really for MLIR). But in any case, IREE should be able to handle this variation by default, and even if it is doesnt should be easy to adapt IREE to account for this change.

@silvas @mravishankar Do you think this is good to go then?

This revision was automatically updated to reflect the committed changes.