[Mlir-commits] [mlir] [mlir][tosa] Change Rescale zero points to be inputs (PR #130340)
Tai Ly
llvmlistbot at llvm.org
Mon Mar 10 09:47:14 PDT 2025
================
@@ -254,6 +254,27 @@ static Type getStorageElementTypeOrSelf(Type type) {
return elementType;
}
+static LogicalResult verifyRescaleValueAndZpTypes(Operation *op, Value val,
+ Value valZp, StringRef name) {
+ Type eType = getStorageElementTypeOrSelf(val.getType());
+ Type eZpType = getStorageElementTypeOrSelf(valZp.getType());
+
+ bool bothInts =
+ mlir::isa<IntegerType>(eType) && mlir::isa<IntegerType>(eZpType);
+ bool bothFloats =
----------------
Tai78641 wrote:
removed bothFloats
https://github.com/llvm/llvm-project/pull/130340
More information about the Mlir-commits
mailing list