Home
last modified time | relevance | path

Searched refs:input_zp (Results 1 – 25 of 29) sorted by relevance

12

/third_party/mindspore/mindspore/lite/micro/coder/wrapper/int8/
Dmatmul_int8_wrapper.c19 …(int8_t *src_ptr, int32_t *input_sums, int8_t *dst_ptr, int batch, int row, int deep, int input_zp, in InitInt8MatrixA() argument
34 … int col, int col_align, int deep_16, int input_zp, const int *weight_zp, const int *bias_ptr, in InitInt8MatrixB() argument
46 …CalcWeightBiasSums(cur_b, deep, col, input_zp, weight_zp, bias_ptr, cur_sums, ColMajor, filter_per… in InitInt8MatrixB()
53 … CalcWeightBiasSums(cur_b, deep, col, input_zp, weight_zp, bias_ptr, cur_sums, RowMajor, false); in InitInt8MatrixB()
Dconv_init_int8_wrapper.c23 … int kernel_w, int input_channel, int output_channel, int32_t input_zp, bool filter_peroc, in ConvInit() argument
81 bias_data_[oc] += filter_zp * input_zp * up_round_deep - weight_sum_value * input_zp; in ConvInit()
Dconv1x1_init_int8_wrapper.c22 int32_t output_channel, int32_t input_zp, bool support_optimize, bool filter_peroc, in Conv1x1Init() argument
84 bias_data_[oc] += filter_zp * input_zp * input_channel - weight_sum_value * input_zp; in Conv1x1Init()
Dmatmul_int8_wrapper.h25 …(int8_t *src_ptr, int32_t *input_sums, int8_t *dst_ptr, int batch, int row, int deep, int input_zp,
29 … int col, int col_align, int deep_16, int input_zp, const int *weight_zp, const int *bias_ptr,
Dconv1x1_init_int8_wrapper.h25 int32_t output_channel, int32_t input_zp, bool support_optimize, bool filter_peroc,
Dconv_init_int8_wrapper.h23 … int kernel_w, int input_channel, int output_channel, int32_t input_zp, bool filter_peroc,
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/
Dsigmoid_int8_coder.cc28 void CalculateTableList(int8_t *table, const float input_scale, const int32_t input_zp, const float… in CalculateTableList() argument
34 const float real_input_value = input_scale * (i - input_zp); in CalculateTableList()
48 const int32_t input_zp = input_tensor_->quant_params().at(0).zeroPoint; in Prepare() local
51 CalculateTableList(table_list_, input_scale, input_zp, output_scale, output_zp); in Prepare()
Dconv2d_1x1_int8_coder.cc154 int32_t input_zp = conv_param_->conv_quant_arg_.input_quant_args_[0].zp_; in InitWeightBias() local
177 … output_channel, input_zp, "GetSupportOptFlag()", filter_peroc_, packed_weight_str, in InitWeightBias()
181 … output_channel, input_zp, support_optimize_, filter_peroc_, packed_weight_str, in InitWeightBias()
Dconv2d_int8_coder.cc96 int32_t input_zp = conv_param_->conv_quant_arg_.input_quant_args_[0].zp_; in InitWeightBias() local
154 … input_channel, output_channel, input_zp, filter_peroc_, "GetSupportOptFlag()", in InitWeightBias()
158 … input_channel, output_channel, input_zp, filter_peroc_, support_optimize_, in InitWeightBias()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Dsigmoid_int8.cc33 void CalculateTableList(int8_t *table, const float input_scale, const int32_t input_zp, const float… in CalculateTableList() argument
39 const float real_input_value = input_scale * (i - input_zp); in CalculateTableList()
52 const int32_t input_zp = input->quant_params().front().zeroPoint; in Init() local
55 CalculateTableList(table_list_, input_scale, input_zp, output_scale, output_zp); in Init()
Dconvolution_int8.cc73 int32_t input_zp = conv_param_->conv_quant_arg_.input_quant_args_[0].zp_; in InitWeightBias() local
127 bias_data[oc] += filter_zp * input_zp * up_round_deep - weight_sum_value * input_zp; in InitWeightBias()
Dhswish_int8.cc38 quant_arg_.input_zp = input->quant_params().front().zeroPoint; in Init()
Dconvolution_1x1_int8.cc161 int32_t input_zp = conv_param_->conv_quant_arg_.input_quant_args_[0].zp_; in InitBiasByzp() local
169 bias_data[oc] += filter_zp * input_zp * input_channel - weight_sum_value * input_zp; in InitBiasByzp()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dpooling_int8.c36 int input_zp = pooling_param->quant_args_[0][0].zp_; in AvgPoolingInt8() local
72 tmp_out = (int8_t)(round((tmp_out - input_zp) * real_multiplier) + output_zp); in AvgPoolingInt8()
92 int input_zp = pooling_param->quant_args_[0][0].zp_; 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()
293 int input_zp = pooling_param->quant_args_[0][0].zp_; in MaxPoolingInt8() local
[all …]
Dpower_int8.c21 int input_zp = param->quant_arg_.in_args_.zp_; in PowerInt8() local
29 float input_val = input_scale * (input[i] - input_zp); in PowerInt8()
38 float input_val = input_scale * (input[i] - input_zp); in PowerInt8()
Dunsqueeze_int8.c27 int8_t input_zp = para_->quant_arg.in_quant_args_.zp_; in Int8Unsqueeze() local
30 output_ptr[i] = output_zp + round(1 / output_scale * input_scale * (input_ptr[i] - input_zp)); in Int8Unsqueeze()
Dconv3x3_int8.c19 …nv3x3Int8InputUnit(const int16_t *tmp_data, int16_t *trans_input_data, size_t step, int input_zp) { in Conv3x3Int8InputUnit() argument
21 int16x8_t zp = vdupq_n_s16(input_zp); in Conv3x3Int8InputUnit()
105 int16_t d00 = local_ptr[0] - input_zp; in Conv3x3Int8InputUnit()
106 int16_t d01 = (local_ptr + C8NUM)[0] - input_zp; in Conv3x3Int8InputUnit()
107 int16_t d02 = (local_ptr + 2 * C8NUM)[0] - input_zp; in Conv3x3Int8InputUnit()
108 int16_t d03 = (local_ptr + 3 * C8NUM)[0] - input_zp; in Conv3x3Int8InputUnit()
110 int16_t d10 = (local_ptr + 4 * C8NUM)[0] - input_zp; in Conv3x3Int8InputUnit()
111 int16_t d11 = (local_ptr + 5 * C8NUM)[0] - input_zp; in Conv3x3Int8InputUnit()
112 int16_t d12 = (local_ptr + 6 * C8NUM)[0] - input_zp; in Conv3x3Int8InputUnit()
113 int16_t d13 = (local_ptr + 7 * C8NUM)[0] - input_zp; in Conv3x3Int8InputUnit()
[all …]
Dslice_int8.c22 int input_zp = param->quant_arg_.in_args_.zp_; in SliceInt8() local
47 if (input_scale == output_scale && input_zp == output_zp) { in SliceInt8()
77 … input[in_offset + c] - input_zp, param->quant_arg_.multiplier_.multiplier_, in SliceInt8()
Ddeconv_int8.c110 void DeConvPackWeightSum(const int8_t *weight, int32_t *weight_sum, int32_t input_zp, int32_t filte… in DeConvPackWeightSum() argument
113 int32_t zp_sum = filter_zp * input_zp * deep; in DeConvPackWeightSum()
122 weight_sum[c] = zp_sum - value * input_zp; in DeConvPackWeightSum()
Dhswish_int8.h26 int32_t input_zp; member
Ddeconv_int8.h30 void DeConvPackWeightSum(const int8_t *weight, int32_t *weight_sum, int32_t input_zp, int32_t filte…
Dconv_depthwise_int8.h38 const int8_t *input_zp, const int32_t *output_zp, const ConvParameter *conv_param,
Dhswish_int8.c26 const int16_t input_value = src[i] - arg->input_zp; in HSwishInt8()
Dmatmul_int8.h34 void CalcWeightBiasSums(const int8_t *weight, int row, int col, int input_zp, const int *weight_zp_…
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/
Ddeconv_int8_tests.cc171 int32_t input_zp = 15; in TEST_F() local
191 memset(packed_a, static_cast<int8_t>(input_zp), 12 * 16); in TEST_F()
253 DeConvPackWeightSum(packed_b, weight_sum, input_zp, filter_zp, 16, 24, true); in TEST_F()

12