/external/gemmlowp/doc/ |
D | quantization_example.cc | 210 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/ |
D | fully_connected_common.cc | 61 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()
|
D | reduce.cc | 73 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()
|
D | div.cc | 104 const double real_multiplier = in Prepare() local 106 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in Prepare()
|
D | mul.cc | 70 double real_multiplier = static_cast<double>(input1->params.scale) * in CalculateOpData() local 73 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in CalculateOpData()
|
D | activations.cc | 73 double real_multiplier = in CalculateReluOpData() local 79 QuantizeMultiplier(real_multiplier, &data->params.output_multiplier, in CalculateReluOpData()
|
/external/tensorflow/tensorflow/lite/micro/kernels/xtensa/ |
D | fully_connected.cc | 125 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/ |
D | device_target.cc | 130 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/ |
D | mul.cc | 65 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/ |
D | div.cc | 104 const double real_multiplier = in Prepare() local 106 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in Prepare()
|
D | kernel_util.cc | 261 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()
|
D | mul.cc | 105 double real_multiplier = in Prepare() local 107 QuantizeMultiplier(real_multiplier, &data->output_multiplier, in Prepare()
|
D | batch_matmul.cc | 315 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()
|
D | fully_connected.cc | 237 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()
|
D | reduce.cc | 264 const double real_multiplier = in PrepareMeanOrSum() local 268 QuantizeMultiplier(real_multiplier, &data->multiplier, &exponent); in PrepareMeanOrSum()
|
D | activations.cc | 285 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/ |
D | fully_connected.cc | 87 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()
|