Home
last modified time | relevance | path

Searched refs:nudged_scale (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dfake_quant_ops_functor.h87 float nudged_min, nudged_max, nudged_scale; in operator() local
89 &nudged_scale); in operator()
90 const float inv_nudged_scale = 1.0f / nudged_scale; in operator()
95 (clamped_shifted * inv_nudged_scale + 0.5f).floor() * nudged_scale + in operator()
112 float nudged_min, nudged_max, nudged_scale; in operator() local
114 &nudged_scale); in operator()
138 float nudged_min, nudged_max, nudged_scale; in operator() local
140 &nudged_scale); in operator()
141 const auto nudged_scale_repl = inputs.constant(nudged_scale); in operator()
170 float nudged_min, nudged_max, nudged_scale; in operator() local
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc322 float* nudged_scale) { in NudgeQuantizationRange() argument
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()
336 *nudged_min = (quant_min_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange()
337 *nudged_max = (quant_max_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange()
340 void FakeQuantizeArray(const float nudged_scale, const float nudged_min, in FakeQuantizeArray() argument
344 const float inv_nudged_scale = 1.0f / nudged_scale; in FakeQuantizeArray()
351 TfLiteRound(clamped_shifted * inv_nudged_scale) * nudged_scale + in FakeQuantizeArray()
Dquantization_util.h264 float* nudged_scale);
269 void FakeQuantizeArray(const float nudged_scale, const float nudged_min,
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dreference_ops.h2896 float nudged_min, nudged_max, nudged_scale; in FakeQuant() local
2898 &nudged_max, &nudged_scale); in FakeQuant()
2900 FakeQuantizeArray(nudged_scale, nudged_min, nudged_max, input_data, in FakeQuant()