[Mlir-commits] [mlir] [mlir[tosa] Switch zero point of avgpool2d to input variable type (PR #128983)

Tai Ly llvmlistbot at llvm.org
Fri Feb 28 06:58:24 PST 2025


================
@@ -804,6 +804,15 @@ class AvgPool2dConverter : public OpRewritePattern<tosa::AvgPool2dOp> {
       return failure();
     SmallVector<Value> dynamicDims = *dynamicDimsOr;
 
+    int64_t inputZpVal;
+    int64_t outputZpVal;
+    if (op.getInputZeroPoint(inputZpVal).failed() ||
----------------
Tai78641 wrote:

done

https://github.com/llvm/llvm-project/pull/128983


More information about the Mlir-commits mailing list