diff --git a/third_party/mlir/lib/Dialect/QuantOps/Utils/FakeQuantSupport.cpp b/third_party/mlir/lib/Dialect/QuantOps/Utils/FakeQuantSupport.cpp index eeb69b77102..637f6a04988 100644 --- a/third_party/mlir/lib/Dialect/QuantOps/Utils/FakeQuantSupport.cpp +++ b/third_party/mlir/lib/Dialect/QuantOps/Utils/FakeQuantSupport.cpp @@ -76,7 +76,7 @@ mlir::quant::fakeQuantAttrsToType(Location loc, unsigned numBits, double rmin, // points and dequantized to 0.0. if (std::fabs(rmax - rmin) < std::numeric_limits::epsilon()) { return UniformQuantizedType::getChecked(flags, storageType, expressedType, - 1.0, 0, qmin, qmax, loc); + 1.0, qmin, qmin, qmax, loc); } // Determine the scale.