/external/tensorflow/tensorflow/core/kernels/ |
D | fake_quant_ops_functor.h | 42 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 …]
|
D | fake_quant_ops.cc | 153 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/ |
D | quantization_utils_test.cc | 63 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 …]
|
D | quantization_utils.cc | 52 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()
|
D | quantization_utils.h | 35 float min, float max, const int quant_min, const int quant_max,
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | fake_quantize_ops.cc | 28 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/ |
D | quantization_util.cc | 320 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()
|
D | quantization_util.h | 262 const int quant_min, const int quant_max,
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | reference_ops.h | 2894 int quant_min = 0; in FakeQuant() local 2897 NudgeQuantizationRange(rmin, rmax, quant_min, quant_max, &nudged_min, in FakeQuant()
|