Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dpooling_int8.c39 double real_multiplier = input_scale / output_scale; in AvgPoolingInt8() local
72 tmp_out = (int8_t)(round((tmp_out - input_zp) * real_multiplier) + output_zp); in AvgPoolingInt8()
94 …double real_multiplier = pooling_param->quant_args_[0][0].scale_ / pooling_param->quant_args_[1][0… in AvgPoolingOptInt8() local
164 tmp_out[l] = round((tmp_out[l] - input_zp) * real_multiplier) + output_zp; in AvgPoolingOptInt8()
170 tmp_out1[l] = round((tmp_out1[l] - input_zp) * real_multiplier) + output_zp; in AvgPoolingOptInt8()
187 real_out[l] = (int8_t)(round((real_out[l] - input_zp) * real_multiplier) + output_zp); in AvgPoolingOptInt8()
230 tmp_out[l] = round((tmp_out[l] - input_zp) * real_multiplier) + output_zp; in AvgPoolingOptInt8()
243 real_out[l] = (int8_t)(round((real_out[l] - input_zp) * real_multiplier) + output_zp); in AvgPoolingOptInt8()
266 tmp_out = (int8_t)(round((tmp_out - input_zp) * real_multiplier) + output_zp); in AvgPoolingOptInt8()
296 double real_multiplier = input_scale / output_scale; in MaxPoolingInt8() local
[all …]
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/cmsis-nn/int8/
Dmul_int8_coder.cc44 const double real_multiplier = input1_scale * input2_scale / output_scale; in Prepare() local
46 QuantizeMultiplier(real_multiplier, &out_mult_, &out_shift_); in Prepare()
Dfullconnection_int8_coder.cc62 double real_multiplier = input_quant_arg.scale * filter_quant_arg.scale / output_quant_arg.scale; in SetParameters() local
63 QuantizeMultiplier(real_multiplier, &out_multiplier_, &out_shift_); in SetParameters()
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/
Ddiv_int8_coder.cc42 …const double real_multiplier = param_.in0_args_.scale_ / (param_.in1_args_.scale_ * param_.out_arg… in Prepare() local
44 QuantizeMultiplier(real_multiplier, &param_.output_multiplier_, &param_.output_shift_); in Prepare()
Dmatmul_base_int8_coder.cc128 double real_multiplier = in_scale / static_cast<double>(quant_.output_.scale_); in InitQuantParam() local
129 …QuantizeRoundParameterWithDoublePrecision(real_multiplier, &quant_.quant_multiplier_[i], &quant_.l… in InitQuantParam()
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/base/
Dconv2d_base_coder.cc267 …double real_multiplier = in_scale / static_cast<double>(conv_quant_arg_->output_quant_args_[0].sca… in SetQuantMultiplier() local
268 conv_quant_arg_->real_multiplier_[i] = real_multiplier; in SetQuantMultiplier()
270 … QuantizeRoundParameterWithSinglePrecision(real_multiplier, &conv_quant_arg_->quant_multiplier_[i], in SetQuantMultiplier()
273 … QuantizeRoundParameterWithDoublePrecision(real_multiplier, &conv_quant_arg_->quant_multiplier_[i], in SetQuantMultiplier()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/base/
Dconvolution_base.cc339 …double real_multiplier = in_scale / static_cast<double>(conv_quant_arg_->output_quant_args_[0].sca… in SetQuantMultiplier() local
340 conv_quant_arg_->real_multiplier_[i] = real_multiplier; in SetQuantMultiplier()
342 … QuantizeRoundParameterWithSinglePrecision(real_multiplier, &conv_quant_arg_->quant_multiplier_[i], in SetQuantMultiplier()
345 … QuantizeRoundParameterWithDoublePrecision(real_multiplier, &conv_quant_arg_->quant_multiplier_[i], in SetQuantMultiplier()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Darithmetic_self_int8.cc49 const double real_multiplier = in Init() local
53 …QuantizeMultiplierSmallerThanOne(real_multiplier, &para_->quant_arg_.output_multiplier_, &right_sh… in Init()
Ddiv_int8.cc58 const double real_multiplier = in Init() local
61 …QuantizeMultiplier(real_multiplier, &quant_args_->output_multiplier_, &quant_args_->output_shift_); in Init()
Dconvolution_depthwise_slidewindow_int8.cc237 double real_multiplier = in_scale / static_cast<double>(output_scale_[i]); in ReinitQuantParam() local
238 conv_quant_arg_->real_multiplier_[i] = real_multiplier; in ReinitQuantParam()
239 … QuantizeRoundParameterWithDoublePrecision(real_multiplier, &conv_quant_arg_->quant_multiplier_[i], in ReinitQuantParam()
Dmul_int8.cc56 …const double real_multiplier = (quant_args_->in_quant_args_[0].scale_ * quant_args_->in_quant_args… in Init() local
60 QuantizeMultiplierSmallerThanOne(real_multiplier, &quant_args_->output_multiplier_, &right_shift); in Init()
Dmatmul_base_int8.cc154 double real_multiplier = in_scale / static_cast<double>(quant_param_->output_.scale_); in InitQuantParam() local
155 QuantizeRoundParameterWithDoublePrecision(real_multiplier, &quant_param_->quant_multiplier_[i], in InitQuantParam()
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/serializers/nnacl_serializer/
Dnnacl_int8_serializer.cc32 std::string real_multiplier = name + "_real_multiplier"; in CodeStruct() local
36 CodeArray(real_multiplier, quant_arg.real_multiplier_, quant_arg.filter_arg_num_, false); in CodeStruct()
49 … quant_arg_in, quant_arg_w, quant_arg_out, real_multiplier, left_shift, right_shift, in CodeStruct()