Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc54 const float quant_min_float = static_cast<float>(quant_min); in GetAsymmetricQuantizationParams() local
59 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()
/external/tensorflow/tensorflow/core/kernels/
Dfake_quant_ops_functor.h44 const float quant_min_float = static_cast<float>(quant_min); in Nudge() local
46 *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()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc324 const float quant_min_float = static_cast<float>(quant_min); in NudgeQuantizationRange() local
326 *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()