Searched refs:nudged_zero_point (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | quantization_util.h | 81 T nudged_zero_point = 0; in ChooseQuantizationParams() local 83 nudged_zero_point = qmin; in ChooseQuantizationParams() 85 nudged_zero_point = qmax; in ChooseQuantizationParams() 87 nudged_zero_point = static_cast<T>(round(zero_point_double)); in ChooseQuantizationParams() 91 TFLITE_CHECK_GE(nudged_zero_point, qmin); in ChooseQuantizationParams() 92 TFLITE_CHECK_LE(nudged_zero_point, qmax); in ChooseQuantizationParams() 96 quantization_params.zero_point = nudged_zero_point; in ChooseQuantizationParams()
|
D | quantization_util.cc | 344 uint16 nudged_zero_point; in NudgeQuantizationRange() local 346 nudged_zero_point = static_cast<uint16>(quant_min); in NudgeQuantizationRange() 348 nudged_zero_point = static_cast<uint16>(quant_max); in NudgeQuantizationRange() 350 nudged_zero_point = static_cast<uint16>(TfLiteRound(zero_point_from_min)); in NudgeQuantizationRange() 352 *nudged_min = (quant_min_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange() 353 *nudged_max = (quant_max_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange()
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | fake_quantize_ops.cc | 34 float nudged_zero_point; in CpuNudge() local 36 nudged_zero_point = quant_min; in CpuNudge() 38 nudged_zero_point = quant_max; in CpuNudge() 40 nudged_zero_point = std::round(zero_point_from_min); in CpuNudge() 43 *nudged_min = (quant_min - nudged_zero_point) * (*scale); in CpuNudge() 44 *nudged_max = (quant_max - nudged_zero_point) * (*scale); in CpuNudge() 61 xla::XlaOp nudged_zero_point = in XlaNudge() local 65 *nudged_min = xla::Mul(xla::Sub(quant_min, nudged_zero_point), *scale); in XlaNudge() 66 *nudged_max = xla::Mul(xla::Sub(quant_max, nudged_zero_point), *scale); in XlaNudge()
|
/external/gemmlowp/doc/ |
D | quantization_example.cc | 98 std::uint8_t nudged_zero_point = 0; in ChooseQuantizationParams() local 100 nudged_zero_point = qmin; in ChooseQuantizationParams() 102 nudged_zero_point = qmax; in ChooseQuantizationParams() 104 nudged_zero_point = in ChooseQuantizationParams() 110 result.zero_point = nudged_zero_point; in ChooseQuantizationParams()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | test_util.h | 547 T nudged_zero_point = 0; in QuantizationParams() local 549 nudged_zero_point = qmin; in QuantizationParams() 551 nudged_zero_point = qmax; in QuantizationParams() 553 nudged_zero_point = static_cast<T>(std::round(zero_point_double)); in QuantizationParams() 558 CHECK_GE(nudged_zero_point, qmin); in QuantizationParams() 559 CHECK_LE(nudged_zero_point, qmax); in QuantizationParams() 561 zero_point = nudged_zero_point; in QuantizationParams()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | fake_quant_ops_functor.h | 48 const uint16 nudged_zero_point = [zero_point_from_min, quant_min, in Nudge() 59 *nudged_min = (quant_min_float - nudged_zero_point) * (*scale); in Nudge() 60 *nudged_max = (quant_max_float - nudged_zero_point) * (*scale); in Nudge()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | portable_tensor_utils.cc | 99 int8 nudged_zero_point = 0; in PortableAsymmetricQuantizeFloats() local 101 nudged_zero_point = kMinScale; in PortableAsymmetricQuantizeFloats() 103 nudged_zero_point = kMaxScale; in PortableAsymmetricQuantizeFloats() 105 nudged_zero_point = static_cast<int8>(round(zero_point_double)); in PortableAsymmetricQuantizeFloats() 108 *offset = nudged_zero_point; in PortableAsymmetricQuantizeFloats()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | neon_tensor_utils.cc | 2223 int8 nudged_zero_point = 0; in NeonAsymmetricQuantizeFloats() local 2225 nudged_zero_point = kMinScale; in NeonAsymmetricQuantizeFloats() 2227 nudged_zero_point = kMaxScale; in NeonAsymmetricQuantizeFloats() 2229 nudged_zero_point = static_cast<int8>(round(zero_point_double)); in NeonAsymmetricQuantizeFloats() 2232 *offset = nudged_zero_point; in NeonAsymmetricQuantizeFloats()
|