Home
last modified time | relevance | path

Searched refs:quantized_multiplier (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/kernels/xtensa/
Dfixedpoint_utils.h37 int32_t quantized_multiplier, in MultiplyByQuantizedMultiplier() argument
51 ae_p24x2s quantized_multiplier_24x2 = AE_MOVPA24(quantized_multiplier); in MultiplyByQuantizedMultiplier()
78 int32_t x, int32_t quantized_multiplier, int shift) { in MultiplyByQuantizedMultiplierResult48Bit() argument
91 return MultiplyByQuantizedMultiplier(x_24x2, quantized_multiplier, shift); in MultiplyByQuantizedMultiplierResult48Bit()
96 int32_t* quantized_multiplier, in QuantizeMultiplierForInt24() argument
99 *quantized_multiplier = 0; in QuantizeMultiplierForInt24()
121 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplierForInt24()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc53 void QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplier() argument
56 *quantized_multiplier = 0; in QuantizeMultiplier()
90 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplier()
94 int32_t* quantized_multiplier, in QuantizeMultiplierGreaterThanOne() argument
97 QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()
102 int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument
107 QuantizeMultiplier(double_multiplier, quantized_multiplier, &shift); in QuantizeMultiplierSmallerThanOneExp()
271 int32_t* quantized_multiplier, int* left_shift) { in PreprocessSoftmaxScaling() argument
297 quantized_multiplier, left_shift); in PreprocessSoftmaxScaling()
302 int32_t* quantized_multiplier, in PreprocessLogSoftmaxScalingExp() argument
[all …]
Dquantization_util.h177 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,
Dquantization_util_test.cc427 int32_t quantized_multiplier; in TEST() local
429 QuantizeMultiplier(multiplier, &quantized_multiplier, &shift); in TEST()
430 return MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift); in TEST()
450 const int32_t quantized_multiplier = std::numeric_limits<int32_t>::max(); in TEST() local
453 TfLiteRound(static_cast<int64_t>(x) * quantized_multiplier / in TEST()
455 EXPECT_EQ(MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift), in TEST()
457 EXPECT_EQ(MultiplyByQuantizedMultiplier(-x, quantized_multiplier, shift), in TEST()
463 int32_t quantized_multiplier; in TEST() local
465 QuantizeMultiplier(multiplier, &quantized_multiplier, &shift); in TEST()
466 return MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift); in TEST()
[all …]
Dcommon.h142 int32_t x, int32_t quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierSmallerThanOneExp() argument
146 SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift); in MultiplyByQuantizedMultiplierSmallerThanOneExp()
150 int32_t x, int32_t quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierGreaterThanOne() argument
153 quantized_multiplier); in MultiplyByQuantizedMultiplierGreaterThanOne()
157 int32_t quantized_multiplier, in MultiplyByQuantizedMultiplier() argument
164 x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
169 int32_t quantized_multiplier, in MultiplyByQuantizedMultiplier() argument
179 assert(quantized_multiplier >= 0); in MultiplyByQuantizedMultiplier()
184 int32_t reduced_multiplier = (quantized_multiplier < 0x7FFF0000) in MultiplyByQuantizedMultiplier()
185 ? ((quantized_multiplier + (1 << 15)) >> 16) in MultiplyByQuantizedMultiplier()
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Ddepthwiseconv_uint8.h65 inline int32_t DepthwiseConvRound(int32_t x, int32_t quantized_multiplier, in DepthwiseConvRound() argument
68 return MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift); in DepthwiseConvRound()
73 int32_t x, int32_t quantized_multiplier, int shift) {
74 return MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift);
79 int32_t x, int32_t quantized_multiplier, int shift) {
85 quantized_multiplier) +
/external/ruy/ruy/
Dapply_multiplier.cc49 std::int32_t quantized_multiplier, in MultiplyByQuantizedMultiplier() argument
57 std::int64_t quantized_multiplier_64(quantized_multiplier); in MultiplyByQuantizedMultiplier()
Dapply_multiplier.h49 std::int32_t quantized_multiplier,
/external/gemmlowp/doc/
Dquantization_example.cc211 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()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dneon_tensor_utils.cc148 int32x4x2_t input_val, int32 quantized_multiplier, int shift) { in MultiplyByQuantizedMultiplier2Rows() argument
161 quantized_multiplier), in MultiplyByQuantizedMultiplier2Rows()
166 quantized_multiplier), in MultiplyByQuantizedMultiplier2Rows()
174 quantized_multiplier), in MultiplyByQuantizedMultiplier2Rows()
179 quantized_multiplier), in MultiplyByQuantizedMultiplier2Rows()
184 quantized_multiplier), in MultiplyByQuantizedMultiplier2Rows()
189 quantized_multiplier), in MultiplyByQuantizedMultiplier2Rows()