Searched refs:quant_min_float (Results 1 – 3 of 3) sorted by relevance
54 const float quant_min_float = static_cast<float>(quant_min); in GetAsymmetricQuantizationParams() local59 const float scale = (max - min) / (quant_max_float - quant_min_float); in GetAsymmetricQuantizationParams()61 float zero_point_from_min = quant_min_float; in GetAsymmetricQuantizationParams()63 zero_point_from_min = quant_min_float - min / scale; in GetAsymmetricQuantizationParams()66 if (zero_point_from_min < quant_min_float) { in GetAsymmetricQuantizationParams()
44 const float quant_min_float = static_cast<float>(quant_min); in Nudge() local46 *scale = (max - min) / (quant_max_float - quant_min_float); in Nudge()47 const float zero_point_from_min = quant_min_float - min / *scale; in Nudge()49 quant_min_float, quant_max, in Nudge()51 if (zero_point_from_min < quant_min_float) { in Nudge()59 *nudged_min = (quant_min_float - nudged_zero_point) * (*scale); in Nudge()
324 const float quant_min_float = static_cast<float>(quant_min); in NudgeQuantizationRange() local326 *nudged_scale = (max - min) / (quant_max_float - quant_min_float); in NudgeQuantizationRange()327 const float zero_point_from_min = quant_min_float - min / *nudged_scale; in NudgeQuantizationRange()329 if (zero_point_from_min < quant_min_float) { in NudgeQuantizationRange()336 *nudged_min = (quant_min_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange()