We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58b8da commit f153804Copy full SHA for f153804
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -2027,6 +2027,7 @@ static LogicalResult vectorizeConvOpPrecondition(linalg::LinalgOp convOp) {
2027
ShapedType resShapedType = getOperandType(convOp.getDpsInitOperand(0));
2028
// (LHS has dimension NCW/NWC and RES has dimension NFW/NCW/NWF/NWC) OR
2029
// (non-channeled convolution -> LHS and RHS both have single dimensions).
2030
+ // Note that this also ensures 2D and 3D convolutions are rejected.
2031
if ((lhsShapedType.getRank() != 3 || resShapedType.getRank() != 3) &&
2032
(lhsShapedType.getRank() != 1 || resShapedType.getRank() != 1))
2033
return failure();
0 commit comments