[Mlir-commits] [mlir] [mlir][linalg] Implement TilingInterface for winograd operators (PR #96184)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Aug 16 01:14:45 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff f78d288d9d77c66f8b3036c62bb55160f19ba9cd c786c4f1738ff13865ce1a9dce84cbe472cb7b75 --extensions h,cpp -- mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp mlir/lib/Dialect/Linalg/Transforms/WinogradConv2D.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
index 67cd4272ab..775ed8f373 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -2999,14 +2999,16 @@ LogicalResult WinogradInputTransformOp::verify() {
expectedOutputShape[getOutputTileHDim()] = ShapedType::kDynamic;
} else {
expectedOutputShape[getOutputAlphaHDim()] = leftTransform ? tileSize : 1;
- expectedOutputShape[getOutputTileHDim()] = leftTransform ? (inputH - (r - 1)) / m : 1;
+ expectedOutputShape[getOutputTileHDim()] =
+ leftTransform ? (inputH - (r - 1)) / m : 1;
}
if (ShapedType::isDynamic(inputW)) {
expectedOutputShape[getOutputAlphaWDim()] = tileSize;
expectedOutputShape[getOutputTileWDim()] = ShapedType::kDynamic;
} else {
expectedOutputShape[getOutputAlphaWDim()] = rightTransform ? tileSize : 1;
- expectedOutputShape[getOutputTileWDim()] = rightTransform ? (inputW - (r - 1)) / m : 1;
+ expectedOutputShape[getOutputTileWDim()] =
+ rightTransform ? (inputW - (r - 1)) / m : 1;
}
expectedOutputShape[getOutputNDim()] = inputShape[getInputNDim()];
expectedOutputShape[getOutputCDim()] = inputShape[getInputCDim()];
@@ -3173,7 +3175,8 @@ LogicalResult WinogradOutputTransformOp::verify() {
} else {
if (valueW != (rightTransform ? m + r - 1 : 1))
return emitOpError("expect input width equals to input tile size");
- expectedOutputShape[getOutputWDim()] = (rightTransform ? m : 1) * valueTileW;
+ expectedOutputShape[getOutputWDim()] =
+ (rightTransform ? m : 1) * valueTileW;
}
expectedOutputShape[getOutputNDim()] = valueShape[getValueNDim()];
expectedOutputShape[getOutputFDim()] = valueShape[getValueFDim()];
``````````
</details>
https://github.com/llvm/llvm-project/pull/96184
More information about the Mlir-commits
mailing list