[Mlir-commits] [mlir] [mlir][tosa] Change Rescale zero points to be inputs (PR #130340)
Luke Hutton
llvmlistbot at llvm.org
Mon Mar 10 03:25:18 PDT 2025
================
@@ -1708,6 +1729,38 @@ static LogicalResult verifyZeroPoint(T op, Value val, const int64_t &zp,
return success();
}
+static LogicalResult verifyZeroPoint(tosa::RescaleOp op, Value zpVal,
+ const int64_t &zp,
+ const std::string &operand) {
+ bool isInputZp = (zpVal == op.getInputZp());
+ bool isOutputZp = (zpVal == op.getOutputZp());
----------------
lhutton1 wrote:
Is it possible for `op.getInputZp() == op.getOutputZp()`? If that's the case, `isInputZp` would be true when outputZp is provided
https://github.com/llvm/llvm-project/pull/130340
More information about the Mlir-commits
mailing list