/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/ |
D | pooling_int8.c | 39 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/ |
D | mul_int8_coder.cc | 44 const double real_multiplier = input1_scale * input2_scale / output_scale; in Prepare() local 46 QuantizeMultiplier(real_multiplier, &out_mult_, &out_shift_); in Prepare()
|
D | fullconnection_int8_coder.cc | 62 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/ |
D | div_int8_coder.cc | 42 …const double real_multiplier = param_.in0_args_.scale_ / (param_.in1_args_.scale_ * param_.out_arg… in Prepare() local 44 QuantizeMultiplier(real_multiplier, ¶m_.output_multiplier_, ¶m_.output_shift_); in Prepare()
|
D | matmul_base_int8_coder.cc | 128 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/ |
D | conv2d_base_coder.cc | 267 …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/ |
D | convolution_base.cc | 339 …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/ |
D | arithmetic_self_int8.cc | 49 const double real_multiplier = in Init() local 53 …QuantizeMultiplierSmallerThanOne(real_multiplier, ¶_->quant_arg_.output_multiplier_, &right_sh… in Init()
|
D | div_int8.cc | 58 const double real_multiplier = in Init() local 61 …QuantizeMultiplier(real_multiplier, &quant_args_->output_multiplier_, &quant_args_->output_shift_); in Init()
|
D | convolution_depthwise_slidewindow_int8.cc | 237 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()
|
D | mul_int8.cc | 56 …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()
|
D | matmul_base_int8.cc | 154 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/ |
D | nnacl_int8_serializer.cc | 32 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()
|