[Mlir-commits] [mlir] 6890969 - [mlir][Linalg] Conv ops lowering to std calls added.
Jakub Lichman
llvmlistbot at llvm.org
Tue Aug 4 00:14:57 PDT 2020
Author: Jakub Lichman
Date: 2020-08-04T07:12:58Z
New Revision: 689096965d9af1b00cd90f117c57fd9e7d07a479
URL: https://github.com/llvm/llvm-project/commit/689096965d9af1b00cd90f117c57fd9e7d07a479
DIFF: https://github.com/llvm/llvm-project/commit/689096965d9af1b00cd90f117c57fd9e7d07a479.diff
LOG: [mlir][Linalg] Conv ops lowering to std calls added.
Lowering of newly defined Conv ops in TC syntax to standard
dialect is not supported and therefore this commit adds support
for it.
Differential Revision: https://reviews.llvm.org/D84840
Added:
Modified:
mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp b/mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
index 55ffa3f8b6e6..d56dffdd0dc1 100644
--- a/mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
+++ b/mlir/lib/Conversion/LinalgToStandard/LinalgToStandard.cpp
@@ -244,7 +244,16 @@ void mlir::populateLinalgToStandardConversionPatterns(
LinalgOpConversion<DotOp>,
LinalgOpConversion<BatchMatmulOp>,
LinalgOpConversion<MatvecOp>,
- LinalgOpConversion<MatmulOp>>(ctx);
+ LinalgOpConversion<MatmulOp>,
+ LinalgOpConversion<ConvWOp>,
+ LinalgOpConversion<ConvNWCOp>,
+ LinalgOpConversion<ConvNCWOp>,
+ LinalgOpConversion<ConvHWOp>,
+ LinalgOpConversion<ConvNHWCOp>,
+ LinalgOpConversion<ConvNCHWOp>,
+ LinalgOpConversion<ConvDHWOp>,
+ LinalgOpConversion<ConvNDHWCOp>,
+ LinalgOpConversion<ConvNCDHWOp>>(ctx);
// clang-format on
}
More information about the Mlir-commits
mailing list