[Mlir-commits] [mlir] [mlir][tosa] Make Convolution Zero Points Inputs (PR #122939)

Jack Frankland llvmlistbot at llvm.org
Mon Jan 20 03:25:05 PST 2025


================
@@ -35,6 +35,9 @@ void computeMultiplierAndShift(double scale, int32_t &multiplier,
 ConvOpQuantizationAttr buildConvOpQuantizationAttr(OpBuilder &builder,
                                                    Value input, Value weight);
 
+std::pair<Value, Value> createZPsAsConst(OpBuilder &builder, Value input,
----------------
FranklandJack wrote:

This is just a helper to ensure that zp is always zero for non-quantised data types.

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


More information about the Mlir-commits mailing list