Skip to content

Commit

Permalink
Add pass to convert nchw convolutions to nhwc (iree-org#15)
Browse files Browse the repository at this point in the history
Include partial support for propagating and cancelling transposes
generated when converting from nchw to nhwc
  • Loading branch information
qedawkins authored and github-actions[bot] committed Sep 30, 2022
1 parent 7d1d9c1 commit 0b00f3a
Show file tree
Hide file tree
Showing 6 changed files with 711 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/src/iree/compiler/Dialect/Flow/Transforms/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ iree_compiler_cc_library(
"CleanupTensorShapes.cpp",
"ConvertConv2D1x1ToMatmul.cpp",
"ConvertConv2DToImg2Col.cpp",
"ConvertConvNchwToNhwc.cpp",
"ConvertLinalgMatmulToMmt4D.cpp",
"ConvertRegionToWorkgroups.cpp",
"ConvertToFlow.cpp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ iree_cc_library(
"CaptureDispatchDynamicDims.cpp"
"CleanupNumericNarrowing.cpp"
"CleanupTensorShapes.cpp"
"ConvertConvNchwToNhwc.cpp"
"ConvertConv2D1x1ToMatmul.cpp"
"ConvertConv2DToImg2Col.cpp"
"ConvertLinalgMatmulToMmt4D.cpp"
Expand Down
Loading

0 comments on commit 0b00f3a

Please sign in to comment.