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.cc342 const float quant_max_float = static_cast<float>(quant_max); in NudgeQuantizationRange() local
343 *nudged_scale = (max - min) / (quant_max_float - quant_min_float); in NudgeQuantizationRange()
348 } else if (zero_point_from_min > quant_max_float) { in NudgeQuantizationRange()
354 *nudged_max = (quant_max_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc65 const float quant_max_float = static_cast<float>(quant_max); in GetAsymmetricQuantizationParams() local
69 const float scale = (max - min) / (quant_max_float - quant_min_float); in GetAsymmetricQuantizationParams()
78 } else if (zero_point_from_min > quant_max_float) { in GetAsymmetricQuantizationParams()