Home
last modified time | relevance | path

Searched refs:quant_max_float (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dfake_quant_ops_functor.h45 const float quant_max_float = static_cast<float>(quant_max); in Nudge() local
46 *scale = (max - min) / (quant_max_float - quant_min_float); in Nudge()
50 quant_max_float] { in Nudge()
54 if (zero_point_from_min > quant_max_float) { in Nudge()
60 *nudged_max = (quant_max_float - nudged_zero_point) * (*scale); in Nudge()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc325 const float quant_max_float = static_cast<float>(quant_max); in NudgeQuantizationRange() local
326 *nudged_scale = (max - min) / (quant_max_float - quant_min_float); in NudgeQuantizationRange()
331 } else if (zero_point_from_min > quant_max_float) { in NudgeQuantizationRange()
337 *nudged_max = (quant_max_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc55 const float quant_max_float = static_cast<float>(quant_max); in GetAsymmetricQuantizationParams() local
59 const float scale = (max - min) / (quant_max_float - quant_min_float); in GetAsymmetricQuantizationParams()
68 } else if (zero_point_from_min > quant_max_float) { in GetAsymmetricQuantizationParams()