Searched refs:quant_min_float (Results 1 – 3 of 3) sorted by relevance
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()
341 const float quant_min_float = static_cast<float>(quant_min); in NudgeQuantizationRange() local343 *nudged_scale = (max - min) / (quant_max_float - quant_min_float); in NudgeQuantizationRange()344 const float zero_point_from_min = quant_min_float - min / *nudged_scale; in NudgeQuantizationRange()346 if (zero_point_from_min < quant_min_float) { in NudgeQuantizationRange()353 *nudged_min = (quant_min_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange()
64 const float quant_min_float = static_cast<float>(quant_min); in GetAsymmetricQuantizationParams() local69 const float scale = (max - min) / (quant_max_float - quant_min_float); in GetAsymmetricQuantizationParams()71 float zero_point_from_min = quant_min_float; in GetAsymmetricQuantizationParams()73 zero_point_from_min = quant_min_float - min / scale; in GetAsymmetricQuantizationParams()76 if (zero_point_from_min < quant_min_float) { in GetAsymmetricQuantizationParams()