[Mlir-commits] [mlir] [mlir][tosa] Add parenthesis for the weight padding calculation (PR #134420)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Apr 4 10:21:49 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Jerry-Ge (Jerry-Ge)
<details>
<summary>Changes</summary>
Minor change.
---
Full diff: https://github.com/llvm/llvm-project/pull/134420.diff
1 Files Affected:
- (modified) mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp
index 50d2202f68a87..ea6ac981b53cc 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp
@@ -129,7 +129,7 @@ class TransposeConvStridedConverter
weightPadding[3] =
(weightHeight % stride[0]) ? (stride[0] - weightHeight % stride[0]) : 0;
weightPadding[5] =
- weightWidth % stride[1] ? stride[1] - weightWidth % stride[1] : 0;
+ (weightWidth % stride[1]) ? (stride[1] - weightWidth % stride[1]) : 0;
Value weightPaddingVal =
getTosaConstShape(rewriter, op->getLoc(), weightPadding);
``````````
</details>
https://github.com/llvm/llvm-project/pull/134420
More information about the Mlir-commits
mailing list