[Mlir-commits] [mlir] [mlir][tosa] Convert RESCALE op multiplier and shift from attributes to inputs (PR #129720)
Luke Hutton
llvmlistbot at llvm.org
Wed Mar 5 03:19:48 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();
----------------
lhutton1 wrote:
I think this is the inputType for the conv2d operation, would the input to the rescale be `outputType`?
https://github.com/llvm/llvm-project/pull/129720
More information about the Mlir-commits
mailing list