Home
last modified time | relevance | path

Searched refs:quant_min (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dfake_quant_ops_functor.h42 const float min, const float max, const int quant_min, const int quant_max, in Nudge() argument
44 const float quant_min_float = static_cast<float>(quant_min); in Nudge()
48 const uint16 nudged_zero_point = [zero_point_from_min, quant_min, in Nudge()
52 return static_cast<uint16>(quant_min); in Nudge()
81 const float max, const int quant_min, const int quant_max, in operator()
88 Nudge(min, max, quant_min, quant_max, &nudged_min, &nudged_max, in operator()
106 const int quant_min, const int quant_max, in operator()
113 Nudge(min, max, quant_min, quant_max, &nudged_min, &nudged_max, in operator()
129 const int quant_min, const int quant_max, in operator()
139 Nudge(min_val, max_val, quant_min, quant_max, &nudged_min, &nudged_max, in operator()
[all …]
Dfake_quant_ops.cc153 const float min, const float max, const int quant_min, const int quant_max,
163 const int quant_min, const int quant_max,
273 typename TTypes<float>::ConstScalar max, const int quant_min,
287 typename TTypes<float>::ConstScalar max, const int quant_min,
419 typename TTypes<float>::ConstFlat max, const int quant_min,
434 const int quant_min, const int quant_max,
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils_test.cc63 const int quant_min = -128; in TEST() local
66 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST()
86 const int quant_min = -128; in TEST() local
89 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST()
108 const int quant_min = -128; in TEST() local
111 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST()
129 const int quant_min = -128; in TEST() local
132 GetAsymmetricQuantizationParams(float_min, float_max, quant_min, quant_max, in TEST()
144 EXPECT_GT(zero_point, quant_min); in TEST()
151 const int quant_min = -128; in TEST() local
[all …]
Dquantization_utils.cc52 float min, float max, const int quant_min, const int quant_max, in GetAsymmetricQuantizationParams() argument
54 const float quant_min_float = static_cast<float>(quant_min); in GetAsymmetricQuantizationParams()
67 zero_point = static_cast<int64_t>(quant_min); in GetAsymmetricQuantizationParams()
Dquantization_utils.h35 float min, float max, const int quant_min, const int quant_max,
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dfake_quantize_ops.cc28 void CpuNudge(const float min, const float max, const float quant_min, in CpuNudge() argument
31 *scale = (max - min) / (quant_max - quant_min); in CpuNudge()
33 const float zero_point_from_min = quant_min - min / *scale; in CpuNudge()
35 if (zero_point_from_min <= quant_min) { in CpuNudge()
36 nudged_zero_point = quant_min; in CpuNudge()
43 *nudged_min = (quant_min - nudged_zero_point) * (*scale); in CpuNudge()
56 xla::XlaOp quant_min = in XlaNudge() local
58 xla::XlaOp zero_point_from_min = xla::Sub(quant_min, xla::Div(min, *scale)); in XlaNudge()
62 xla::Select(xla::Le(zero_point_from_min, quant_min), quant_min, in XlaNudge()
65 *nudged_min = xla::Mul(xla::Sub(quant_min, nudged_zero_point), *scale); in XlaNudge()
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc320 const int quant_min, const int quant_max, in NudgeQuantizationRange() argument
324 const float quant_min_float = static_cast<float>(quant_min); in NudgeQuantizationRange()
330 nudged_zero_point = static_cast<uint16>(quant_min); in NudgeQuantizationRange()
Dquantization_util.h262 const int quant_min, const int quant_max,
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dreference_ops.h2894 int quant_min = 0; in FakeQuant() local
2897 NudgeQuantizationRange(rmin, rmax, quant_min, quant_max, &nudged_min, in FakeQuant()