This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Add decomposition from conv_2d_nchw
ClosedPublic

Authored by raikonenfnu on Sep 8 2022, 10:52 PM.

Details

Summary

Decompose conv_2d_nchw_fchw -> conv_1d_ncw_fcw

Diff Detail

Event Timeline

raikonenfnu created this revision.Sep 8 2022, 10:52 PM
raikonenfnu requested review of this revision.Sep 8 2022, 10:52 PM
hanchung requested changes to this revision.Sep 9 2022, 11:35 AM
hanchung added inline comments.
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
852–865

Let's use TypeSwitch in this case. That makes it more readable.

TypeSwitch<Operation *, LogicalResult>(op)
  .Case<linalg::Conv2DNhwcHwcfOp> ...
This revision now requires changes to proceed.Sep 9 2022, 11:35 AM

Added Typeswitch for better readability

hanchung accepted this revision.Sep 9 2022, 3:07 PM
This revision is now accepted and ready to land.Sep 9 2022, 3:07 PM
This revision was automatically updated to reflect the committed changes.