Home
last modified time | relevance | path

Searched refs:real_multiplier (Results 1 – 17 of 17) 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/micro/kernels/
Dfully_connected_common.cc61 double real_multiplier = 0.0; in CalculateOpDataFullyConnected() local
63 context, input, filter, bias, output, &real_multiplier)); in CalculateOpDataFullyConnected()
64 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpDataFullyConnected()
Dreduce.cc73 const double real_multiplier = static_cast<double>(input->params.scale) / in PrepareSimple() local
75 QuantizeMultiplier(real_multiplier, &data->multiplier, &data->shift); in PrepareSimple()
107 const double real_multiplier = static_cast<double>(input->params.scale) / in PrepareMeanOrSum() local
109 QuantizeMultiplier(real_multiplier, &op_data->multiplier, &op_data->shift); in PrepareMeanOrSum()
Ddiv.cc104 const double real_multiplier = in Prepare() local
106 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in Prepare()
Dmul.cc70 double real_multiplier = static_cast<double>(input1->params.scale) * in CalculateOpData() local
73 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpData()
Dactivations.cc73 double real_multiplier = in CalculateReluOpData() local
79 QuantizeMultiplier(real_multiplier, &data->params.output_multiplier, in CalculateReluOpData()
/external/tensorflow/tensorflow/lite/micro/kernels/xtensa/
Dfully_connected.cc125 double real_multiplier = 0.0; in CalculateOpData() local
127 context, input, filter, bias, output, &real_multiplier)); in CalculateOpData()
129 QuantizeMultiplierForInt24(real_multiplier, &data->output_multiplier, in CalculateOpData()
132 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpData()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Ddevice_target.cc130 double real_multiplier = scale_product / o_spec.getScale(); in DecomposeMultiplyAccumulateScale() local
131 output_multipliers->push_back(quant::QuantizeMultiplier(real_multiplier)); in DecomposeMultiplyAccumulateScale()
/external/tensorflow/tensorflow/lite/micro/kernels/cmsis_nn/
Dmul.cc65 double real_multiplier = static_cast<double>(input1->params.scale) * in CalculateOpData() local
68 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpData()
/external/tensorflow/tensorflow/lite/kernels/
Ddiv.cc104 const double real_multiplier = in Prepare() local
106 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in Prepare()
Dkernel_util.cc261 double real_multiplier = 0.0; in PopulateConvolutionQuantizationParams() local
263 context, input, filter, bias, output, &real_multiplier)); in PopulateConvolutionQuantizationParams()
267 QuantizeMultiplier(real_multiplier, multiplier, &exponent); in PopulateConvolutionQuantizationParams()
Dmul.cc105 double real_multiplier = in Prepare() local
107 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in Prepare()
Dbatch_matmul.cc315 double real_multiplier = 0.0; in Prepare() local
317 context, lhs_data, rhs_data, output, &real_multiplier)); in Prepare()
319 QuantizeMultiplier(real_multiplier, &op_data->output_multiplier, &exponent); in Prepare()
Dfully_connected.cc237 double real_multiplier = 0.0; in PrepareImpl() local
239 context, input, filter, bias, output, &real_multiplier)); in PrepareImpl()
241 QuantizeMultiplier(real_multiplier, &data->output_multiplier, &exponent); in PrepareImpl()
Dreduce.cc264 const double real_multiplier = in PrepareMeanOrSum() local
268 QuantizeMultiplier(real_multiplier, &data->multiplier, &exponent); in PrepareMeanOrSum()
Dactivations.cc285 double real_multiplier = input->params.scale / output->params.scale; in ReluPrepare() local
286 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in ReluPrepare()
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/
Dfully_connected.cc87 double real_multiplier = 0.0; in CalculateOpData() local
89 context, input, filter, bias, output, &real_multiplier)); in CalculateOpData()
91 QuantizeMultiplier(real_multiplier, &data->output_multiplier, &exponent); in CalculateOpData()