Home
last modified time | relevance | path

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

/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.cc341 const float quant_min_float = static_cast<float>(quant_min); in NudgeQuantizationRange() local
343 *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()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc64 const float quant_min_float = static_cast<float>(quant_min); in GetAsymmetricQuantizationParams() local
69 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()