Lines Matching defs:rmin
59 // If 0.0 < rmin < rmax or rmin < rmax < 0.0, the range will be shifted
60 // to include 0.0, but the range width size (rmax-rmin) isn't changed. The zero
62 // a consequence some values, which are supposed in the original [rmin, rmax]
66 static void getNudgedScaleAndZeroPoint(int64_t qmin, int64_t qmax, double rmin,
72 scale = (rmax - rmin) / (qmaxDouble - qminDouble);
77 // are known: (rmin, qmin), (rmax, qmax).
81 const double zeroPointFromMin = qminDouble - rmin / scale;
83 std::abs(qminDouble) + std::abs(rmin / scale);
108 mlir::quant::fakeQuantAttrsToType(Location loc, unsigned numBits, double rmin,
125 if (std::fabs(rmax - rmin) < std::numeric_limits<double>::epsilon()) {
132 getNudgedScaleAndZeroPoint(qmin, qmax, rmin, rmax, scale, nudgedZeroPoint);
165 double rmin = rmins[axis];
167 if (std::fabs(rmax - rmin) < std::numeric_limits<double>::epsilon()) {
175 getNudgedScaleAndZeroPoint(qmin, qmax, rmin, rmax, scale, nudgedZeroPoint);