Searched refs:zero_point_from_min (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | fake_quantize_ops.cc | 33 const float zero_point_from_min = quant_min - min / *scale; in CpuNudge() local 35 if (zero_point_from_min <= quant_min) { in CpuNudge() 37 } else if (zero_point_from_min >= quant_max) { in CpuNudge() 40 nudged_zero_point = std::round(zero_point_from_min); in CpuNudge() 58 xla::XlaOp zero_point_from_min = xla::Sub(quant_min, xla::Div(min, *scale)); in XlaNudge() local 62 xla::Select(xla::Le(zero_point_from_min, quant_min), quant_min, in XlaNudge() 63 xla::Select(xla::Ge(zero_point_from_min, quant_max), in XlaNudge() 64 quant_max, xla::Round(zero_point_from_min))); in XlaNudge()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | fake_quant_ops_functor.h | 47 const float zero_point_from_min = quant_min_float - min / *scale; in Nudge() local 48 const uint16 nudged_zero_point = [zero_point_from_min, quant_min, in Nudge() 51 if (zero_point_from_min < quant_min_float) { in Nudge() 54 if (zero_point_from_min > quant_max_float) { in Nudge() 57 return static_cast<uint16>(StdRound(zero_point_from_min)); in Nudge()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | quantization_util.cc | 344 const float zero_point_from_min = quant_min_float - min / *nudged_scale; in NudgeQuantizationRange() local 346 if (zero_point_from_min < quant_min_float) { in NudgeQuantizationRange() 348 } else if (zero_point_from_min > quant_max_float) { in NudgeQuantizationRange() 351 nudged_zero_point = static_cast<uint16_t>(TfLiteRound(zero_point_from_min)); in NudgeQuantizationRange()
|
D | quantization_util.h | 64 const double zero_point_from_min = qmin_double - rmin / scale; in ChooseQuantizationParams() local 73 ? zero_point_from_min in ChooseQuantizationParams()
|
/external/tensorflow/tensorflow/lite/tools/optimize/ |
D | quantization_utils.cc | 71 float zero_point_from_min = quant_min_float; in GetAsymmetricQuantizationParams() local 73 zero_point_from_min = quant_min_float - min / scale; in GetAsymmetricQuantizationParams() 76 if (zero_point_from_min < quant_min_float) { in GetAsymmetricQuantizationParams() 78 } else if (zero_point_from_min > quant_max_float) { in GetAsymmetricQuantizationParams() 81 zero_point = static_cast<int64_t>(std::round(zero_point_from_min)); in GetAsymmetricQuantizationParams()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | portable_tensor_utils.cc | 89 const double zero_point_from_min = qmin_double - rmin / scale; in PortableAsymmetricQuantizeFloats() local 97 ? zero_point_from_min in PortableAsymmetricQuantizeFloats()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | test_util.h | 727 const float zero_point_from_min = qmin_double - f_min / scale; in QuantizationParams() local 738 ? zero_point_from_min in QuantizationParams()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | neon_tensor_utils.cc | 2375 const double zero_point_from_min = qmin_double - rmin / scale; in NeonAsymmetricQuantizeFloats() local 2383 ? zero_point_from_min in NeonAsymmetricQuantizeFloats()
|