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 3af5ab2 commit 2e09090Copy full SHA for 2e09090
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -2499,8 +2499,8 @@ struct Conv1DGenerator
2499
return;
2500
// (LHS has dimension NCW/NWC and RES has dimension NFW/NCW/NWF/NWC) OR
2501
// (non-channeled convolution -> LHS and RHS both have single dimensions).
2502
- if (!((lhsShapedType.getRank() == 3 && resShapedType.getRank() == 3) ||
2503
- (lhsShapedType.getRank() == 1 && resShapedType.getRank() == 1)))
+ if ((lhsShapedType.getRank() != 3 || resShapedType.getRank() != 3) &&
+ (lhsShapedType.getRank() != 1 || resShapedType.getRank() != 1))
2504
2505
2506
Operation *reduceOp = matchLinalgReduction(linalgOp.getDpsInitOperand(0));
0 commit comments