Skip to content

Commit 112af87

Browse files
authored
[mlir][tosa] Add parenthesis for the weight padding calculation (#134420)
Minor change. Signed-off-by: Jerry Ge <[email protected]>
1 parent 600eeed commit 112af87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class TransposeConvStridedConverter
129129
weightPadding[3] =
130130
(weightHeight % stride[0]) ? (stride[0] - weightHeight % stride[0]) : 0;
131131
weightPadding[5] =
132-
weightWidth % stride[1] ? stride[1] - weightWidth % stride[1] : 0;
132+
(weightWidth % stride[1]) ? (stride[1] - weightWidth % stride[1]) : 0;
133133

134134
Value weightPaddingVal =
135135
getTosaConstShape(rewriter, op->getLoc(), weightPadding);

0 commit comments

Comments
 (0)