Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc52 void QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier, in QuantizeMultiplier() argument
55 *quantized_multiplier = 0; in QuantizeMultiplier()
89 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplier()
93 int32_t* quantized_multiplier, in QuantizeMultiplierGreaterThanOne() argument
96 QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()
101 int32_t* quantized_multiplier, in QuantizeMultiplierSmallerThanOneExp() argument
106 QuantizeMultiplier(double_multiplier, quantized_multiplier, &shift); in QuantizeMultiplierSmallerThanOneExp()
270 int32_t* quantized_multiplier, int* left_shift) { in PreprocessSoftmaxScaling() argument
296 quantized_multiplier, left_shift); in PreprocessSoftmaxScaling()
301 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,
Dcommon.h134 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierSmallerThanOneExp() argument
138 SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift); in MultiplyByQuantizedMultiplierSmallerThanOneExp()
142 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierGreaterThanOne() argument
145 quantized_multiplier); in MultiplyByQuantizedMultiplierGreaterThanOne()
148 inline int32 MultiplyByQuantizedMultiplier(int32 x, int32 quantized_multiplier, in MultiplyByQuantizedMultiplier() argument
155 x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
/external/tensorflow/tensorflow/lite/micro/kernels/xtensa-hifimini/
Dfixedpoint_utils.h52 int32_t quantized_multiplier, in MultiplyByQuantizedMultiplier() argument
96 AE_CONVERT_INT32_24x2(quantized_multiplier); in MultiplyByQuantizedMultiplier()
127 int32_t quantized_multiplier, in MultiplyByQuantizedMultiplier() argument
173 AE_CONVERT_INT32_24x2(quantized_multiplier); in MultiplyByQuantizedMultiplier()
195 int32_t* quantized_multiplier, int* shift) { in QuantizeMultiplier() argument
197 *quantized_multiplier = 0; in QuantizeMultiplier()
217 *quantized_multiplier = static_cast<int32_t>(q_fixed); in QuantizeMultiplier()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Ddepthwiseconv_uint8.h65 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/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.cc108 int32x4x4_t input_val, int32 quantized_multiplier, int shift) { in MultiplyByQuantizedMultiplier4Rows() argument
121 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
126 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
131 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
136 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
144 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
149 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
154 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
159 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
169 int32x4x2_t input_val, int32 quantized_multiplier, int shift) { in MultiplyByQuantizedMultiplier2Rows() argument
[all …]
Doptimized_ops.h202 int32x4x4_t input_val, int32 quantized_multiplier, int shift) { in MultiplyByQuantizedMultiplier4Rows() argument
215 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
220 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
225 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
230 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
238 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
243 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
248 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
253 quantized_multiplier), in MultiplyByQuantizedMultiplier4Rows()
/external/tensorflow/tensorflow/lite/experimental/ruy/
Dkernel_common.h121 std::int32_t x, std::int32_t quantized_multiplier, int shift) { in MultiplyByQuantizedMultiplier() argument
125 x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()