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 raikonenfnu committed Oct 14, 2022
1 parent c21cb9a commit de2066b
Show file tree
Hide file tree
Showing 7 changed files with 714 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@
[submodule "third_party/level-zero"]
path = third_party/level-zero
url = https://github.com/oneapi-src/level-zero
[submodule "level-zero"]
path = level-zero
url = https://github.com/oneapi-src/level-zero
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 @@ -37,6 +37,7 @@ iree_compiler_cc_library(
"CollapseReductionDims.cpp",
"Convert1X1FilterConv2DToMatmul.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 @@ -34,6 +34,7 @@ iree_cc_library(
"CleanupTensorShapes.cpp"
"CollapseReductionDims.cpp"
"Convert1X1FilterConv2DToMatmul.cpp"
"ConvertConvNchwToNhwc.cpp"
"ConvertConv2DToImg2Col.cpp"
"ConvertLinalgMatmulToMmt4D.cpp"
"ConvertRegionToWorkgroups.cpp"
Expand Down
Loading

0 comments on commit de2066b

Please sign in to comment.