[Mlir-commits] [mlir] QuantileType relax quantileType conditions and inheritance issue (PR #204793)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jun 24 00:13:36 PDT 2026


================
@@ -11,8 +11,8 @@ func.func private @invalid_storage_type() -> !quant.quantile<tensor<1xf32>:f32,
 // -----
 
 // Quantile (expressed) type must be a float.
-// expected-error @+1 {{quantile type must be a float type}}
-func.func private @invalid_quantile_type() -> !quant.quantile<ui4:i8, {1.0, 0.0, -1.0}>
+// expected-error @+1 {{quantile type must be a float or integer type}}
+func.func private @invalid_quantile_type() -> !quant.quantile<ui4:tensor<1xf32>, {1.0, 0.0, -1.0}>
----------------
vsimion26 wrote:

Left this invalid test in place and created 2 new tests that check for signed and unsigned integer expressed type

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


More information about the Mlir-commits mailing list