Searched defs:zero_point_from_min (Results 1 - 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
H A Dfake_quant_ops_functor.h47 const float zero_point_from_min = quant_min_float - min / *scale; local
48 const uint16 nudged_zero_point = [zero_point_from_min, quant_min,
51 if (zero_point_from_min < quant_min_float) {
54 if (zero_point_from_min > quant_max_float) {
57 return static_cast<uint16>(StdRound(zero_point_from_min));
/external/tensorflow/tensorflow/contrib/lite/toco/
H A Dtooling_util.h181 const double zero_point_from_min = qmin_double - rmin / scale; local
190 ? zero_point_from_min
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
H A Dfake_quantize_ops.cc32 const float zero_point_from_min = quant_min - min / *scale; local
34 if (zero_point_from_min <= quant_min) {
36 } else if (zero_point_from_min >= quant_max) {
39 nudged_zero_point = std::round(zero_point_from_min);
59 xla::ComputationDataHandle zero_point_from_min = local
64 b->Select(b->Le(zero_point_from_min, quant_min), quant_min,
65 b->Select(b->Ge(zero_point_from_min, quant_max), quant_max,
66 b->Round(zero_point_from_min)));

Completed in 149 milliseconds