Home
last modified time | relevance | path

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

/external/gemmlowp/doc/
Dquantization_example.cc210 void QuantizeMultiplierSmallerThanOne(float real_multiplier, in QuantizeMultiplierSmallerThanOne() argument
213 assert(real_multiplier > 0.f); in QuantizeMultiplierSmallerThanOne()
214 assert(real_multiplier < 1.f); in QuantizeMultiplierSmallerThanOne()
220 while (real_multiplier < 0.5f) { in QuantizeMultiplierSmallerThanOne()
221 real_multiplier *= 2.0f; in QuantizeMultiplierSmallerThanOne()
227 static_cast<std::int64_t>(std::round(real_multiplier * (1ll << 31))); in QuantizeMultiplierSmallerThanOne()
336 const float real_multiplier = in main() local
340 QuantizeMultiplierSmallerThanOne(real_multiplier, &quantized_multiplier, in main()
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/
Dfully_connected.cc56 double real_multiplier = 0.0; in CalculateOpData() local
58 context, input, filter, bias, output, &real_multiplier)); in CalculateOpData()
60 QuantizeMultiplier(real_multiplier, &data->output_multiplier, &exponent); in CalculateOpData()
Ddepthwise_conv.cc69 double real_multiplier = 0.0; in CalculateOpData() local
71 context, input, filter, bias, output, &real_multiplier)); in CalculateOpData()
73 QuantizeMultiplier(real_multiplier, &data->output_multiplier, &exponent); in CalculateOpData()
/external/tensorflow/tensorflow/lite/kernels/
Dkernel_util.cc92 double real_multiplier = 0.0; in PopulateConvolutionQuantizationParams() local
94 context, input, filter, bias, output, &real_multiplier)); in PopulateConvolutionQuantizationParams()
98 QuantizeMultiplier(real_multiplier, multiplier, &exponent); in PopulateConvolutionQuantizationParams()
Dmul.cc99 double real_multiplier = in Prepare() local
102 real_multiplier, &data->output_multiplier, &data->output_shift); in Prepare()
Dfully_connected.cc121 double real_multiplier = 0.0; in Prepare() local
123 context, input, filter, bias, output, &real_multiplier)); in Prepare()
125 QuantizeMultiplier(real_multiplier, &data->output_multiplier, &exponent); in Prepare()
Dreduce.cc242 const double real_multiplier = in PrepareMeanOrSum() local
246 QuantizeMultiplier(real_multiplier, &data->multiplier, &exponent); in PrepareMeanOrSum()
Dactivations.cc310 double real_multiplier = in PreluPrepare() local
313 real_multiplier, &data->output_multiplier, &data->output_shift); in PreluPrepare()
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/portable_optimized/
Ddepthwise_conv.cc72 double real_multiplier = 0.0; in CalculateOpData() local
74 context, input, filter, bias, output, &real_multiplier)); in CalculateOpData()
76 QuantizeMultiplier(real_multiplier, &data->output_multiplier, &exponent); in CalculateOpData()