[Mlir-commits] [mlir] [mlir][tosa] Convert RESCALE op multiplier and shift from attributes to inputs (PR #129720)
Peng Sun
llvmlistbot at llvm.org
Wed Mar 5 11:20:37 PST 2025
================
@@ -165,18 +165,20 @@ ConvertTosaConv2DOp::matchAndRewrite(Operation *op,
// Obtain the quantized scale = multiplier and shift.
computeMultiplierAndShift(opTensorScale, multiplier, shift, 32);
- bool input_unsigned =
- newTosaConv2DOp.getResult().getType().isUnsignedInteger();
- bool output_unsigned = outputType.isUnsignedInteger();
+ bool inputUnsigned = inputType.getElementType().isUnsignedInteger();
----------------
psunn wrote:
Done
https://github.com/llvm/llvm-project/pull/129720
More information about the Mlir-commits
mailing list