Searched refs:quantized_multiplier (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | quantization_util.cc | 52 void QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplier() argument 55 *quantized_multiplier = 0; in QuantizeMultiplier() 75 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplier() 79 int32_t* quantized_multiplier, in QuantizeMultiplierGreaterThanOne() argument 82 QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne() 87 int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument 92 QuantizeMultiplier(double_multiplier, quantized_multiplier, &shift); in QuantizeMultiplierSmallerThanOneExp() 256 int32_t* quantized_multiplier, int* left_shift) { in PreprocessSoftmaxScaling() argument 282 quantized_multiplier, left_shift); in PreprocessSoftmaxScaling() 287 int32_t* quantized_multiplier, in PreprocessLogSoftmaxScalingExp() argument [all …]
|
D | quantization_util.h | 177 int32_t* quantized_multiplier, 185 int32_t* quantized_multiplier, 195 void QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, 242 int32_t* quantized_multiplier, int* left_shift); 246 int32_t* quantized_multiplier,
|
D | common.h | 91 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierSmallerThanOneExp() argument 95 SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift); in MultiplyByQuantizedMultiplierSmallerThanOneExp() 99 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierGreaterThanOne() argument 102 quantized_multiplier); in MultiplyByQuantizedMultiplierGreaterThanOne() 105 inline int32 MultiplyByQuantizedMultiplier(int32 x, int32 quantized_multiplier, in MultiplyByQuantizedMultiplier() argument 112 x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | depthwiseconv_uint8.h | 65 inline int32 DepthwiseConvRound(int32 x, int32 quantized_multiplier, in DepthwiseConvRound() argument 68 return MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift); in DepthwiseConvRound() 73 int32 x, int32 quantized_multiplier, int shift) { 74 return MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift); 79 int32 x, int32 quantized_multiplier, int shift) { 85 quantized_multiplier) +
|
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/ |
D | common.h | 93 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierSmallerThanOneExp() argument 97 SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift); in MultiplyByQuantizedMultiplierSmallerThanOneExp() 101 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierGreaterThanOne() argument 104 quantized_multiplier); in MultiplyByQuantizedMultiplierGreaterThanOne() 107 inline int32 MultiplyByQuantizedMultiplier(int32 x, int32 quantized_multiplier, in MultiplyByQuantizedMultiplier() argument 114 x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
|
/external/gemmlowp/doc/ |
D | quantization_example.cc | 211 std::int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOne() argument 239 *quantized_multiplier = static_cast<std::int32_t>(q); in QuantizeMultiplierSmallerThanOne() 338 std::int32_t quantized_multiplier; in main() local 340 QuantizeMultiplierSmallerThanOne(real_multiplier, &quantized_multiplier, in main() 353 quantize_down_stage.result_fixedpoint_multiplier = quantized_multiplier; in main()
|