Home
last modified time | relevance | path

Searched refs:output_zp (Results 1 – 25 of 27) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Darg_min_max_int8.c40 int32_t output_zp = out_quant_arg->zp_; in DoArgMinMaxQuant() local
65 output[output_offset + j] = real_out * output_inverse_scale + output_zp; in DoArgMinMaxQuant()
88 int8_t GetInt8Output(float real_out, float output_inverse_scale, int32_t output_zp) { in GetInt8Output() argument
89 return real_out * output_inverse_scale + output_zp; in GetInt8Output()
97 int32_t output_zp = out_quant_arg->zp_; in Int8ArgMinMaxDim0() local
113 output[out_offset] = GetInt8Output(real_out, output_inverse_scale, output_zp); in Int8ArgMinMaxDim0()
123 int32_t output_zp = out_quant_arg->zp_; in Int8ArgMinMaxDim1() local
143 output[out_offset] = GetInt8Output(real_out, output_inverse_scale, output_zp); in Int8ArgMinMaxDim1()
154 int32_t output_zp = out_quant_arg->zp_; in Int8ArgMinMaxDim2() local
177 output[out_offset] = GetInt8Output(real_out, output_inverse_scale, output_zp); in Int8ArgMinMaxDim2()
[all …]
Dleaky_relu_int8.c25 int output_zp = quant_prelu_parm->quant_arg.out_args_.zp_; in DoLeakReluInt8() local
34 int32_t output_tmp = round(inputs[j] * quant_prelu_parm->slope_ * scale + bias) + output_zp; in DoLeakReluInt8()
43 int32_t output_tmp = round(inputs[j] * scale + bias) + output_zp; in DoLeakReluInt8()
Dpooling_int8.c38 int output_zp = pooling_param->quant_args_[1][0].zp_; in AvgPoolingInt8() local
72 tmp_out = (int8_t)(round((tmp_out - input_zp) * real_multiplier) + output_zp); in AvgPoolingInt8()
93 int output_zp = pooling_param->quant_args_[1][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()
295 int output_zp = pooling_param->quant_args_[1][0].zp_; in MaxPoolingInt8() local
[all …]
Dpower_int8.c23 int output_zp = param->quant_arg_.out_args_.zp_; in PowerInt8() local
31 int32_t output_scaled = round(output_val / output_scale) + output_zp; in PowerInt8()
41 int32_t output_scaled = round(output_val / output_scale) + output_zp; in PowerInt8()
Dconcat_int8.c31 int output_zp = para->quant_arg_.out_args_.zp_; in Int8Concat() local
43 if (input_quant[i].scale_ == output_scale && input_quant[i].zp_ == output_zp) { in Int8Concat()
49 int32_t output_tmp = round(input_ptr[j] * scale + bias) + output_zp; in Int8Concat()
Dbatch_to_space_int8.c33 int32_t output_zp = out_quant_arg->zp_; in BatchToSpaceNoCropForNHWCInt8() local
44 int32_t output_tmp = round(input[in_offset + c] * scale + bias) + output_zp; in BatchToSpaceNoCropForNHWCInt8()
80 int32_t output_zp = out_quant_arg->zp_; in BatchToSpaceForNHWCInt8() local
99 int32_t output_tmp = round(input[in_offset + c] * scale + bias) + output_zp; in BatchToSpaceForNHWCInt8()
Dunsqueeze_int8.c25 int8_t output_zp = para_->quant_arg.out_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()
Dsqueeze_int8.c24 int output_zp = quant_Squeeze_parm->out_quant_args_->zp_; in SqueezeInt8() local
30 int32_t output_tmp = round(input_ptr[j] * scale + bias) + output_zp; in SqueezeInt8()
Dreshape_int8.c28 int32_t output_zp = para.out_args_.zp_; in Int8Reshape() local
30 int32_t output_tmp = round(input_ptr[i] * scale + bias) + output_zp; in Int8Reshape()
Dmatmul_int8.h46 … const int32_t *right_shift, const int32_t *multiplier, int32_t output_zp, int32_t mini,
55 … const int32_t *right_shift, const int32_t *multiplier, int32_t output_zp, int32_t mini,
65 … const int32_t *right_shift, const int32_t *multiplier, int32_t output_zp, int32_t mini,
Dslice_int8.c24 int output_zp = param->quant_arg_.out_args_.zp_; in SliceInt8() local
47 if (input_scale == output_scale && input_zp == output_zp) { in SliceInt8()
80 output_zp; in SliceInt8()
Ddepth_to_space_int8.c28 int32_t output_zp = out_quant_arg->zp_; in DepthToSpaceForNHWCInt8() local
42 int32_t output_tmp = round(input[in_offset + m] * scale + bias) + output_zp; in DepthToSpaceForNHWCInt8()
Dhswish_int8.h28 int32_t output_zp; member
Dmatmul_int8.c200 … const int32_t *right_shift, const int32_t *multiplier, int32_t output_zp, int32_t mini, in MatMulInt8_4x2_r() argument
223 … MultiplyByQuantizedMultiplier(value, cur_multiplier, cur_left_shift, cur_right_shift) + output_zp; in MatMulInt8_4x2_r()
273 … const int32_t *right_shift, const int32_t *multiplier, int32_t output_zp, int32_t mini, in MatMulInt8_8x8_r() argument
295 … MultiplyByQuantizedMultiplier(value, cur_multiplier, cur_left_shift, cur_right_shift) + output_zp; in MatMulInt8_8x8_r()
306 … const int32_t *right_shift, const int32_t *multiplier, int32_t output_zp, int32_t mini, in MatMulInt8_4x16_r() argument
327 … MultiplyByQuantizedMultiplier(value, cur_multiplier, cur_left_shift, cur_right_shift) + output_zp; in MatMulInt8_4x16_r()
Dconv3x3_int8.c460 int output_zp = conv_param->conv_quant_arg_.output_quant_args_[0].zp_; in Conv3x3Int8OutputUnit() local
515 int32x4_t out_zp = vdupq_n_s32(output_zp); in Conv3x3Int8OutputUnit()
628 d00 += output_zp; in Conv3x3Int8OutputUnit()
635 d01 += output_zp; in Conv3x3Int8OutputUnit()
642 d10 += output_zp; in Conv3x3Int8OutputUnit()
649 d11 += output_zp; in Conv3x3Int8OutputUnit()
708 d00 += output_zp; in Conv3x3Int8OutputUnit()
715 d01 += output_zp; in Conv3x3Int8OutputUnit()
722 d10 += output_zp; in Conv3x3Int8OutputUnit()
729 d11 += output_zp; in Conv3x3Int8OutputUnit()
Dconv_depthwise_int8.h38 const int8_t *input_zp, const int32_t *output_zp, const ConvParameter *conv_param,
Dcommon_func_int8.h36 void ConvDwInt8PostAlign4PerChannel(int8_t *dst, int32_t *buffer, int channel4, int32_t output_zp,
39 void ConvDwInt8PostAlign4(int8_t *dst, int32_t *buffer, int num_pixels, int32_t output_zp, int32_t …
Dhswish_int8.c47 output += arg->output_zp; in HSwishInt8()
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/
Dsigmoid_int8_coder.cc29 const int32_t output_zp) { in CalculateTableList() argument
36 const int32_t quantized = std::round(sigmoid_value / output_scale) + output_zp; in CalculateTableList()
50 const int32_t output_zp = output_tensor_->quant_params().at(0).zeroPoint; in Prepare() local
51 CalculateTableList(table_list_, input_scale, input_zp, output_scale, output_zp); in Prepare()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Dopt_op_handler.cc35 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel) { in MatMulRInt8_optimize_handler() argument
37output_zp, multiplier, left_shift, right_shift, row, col, stride, per_channel); in MatMulRInt8_optimize_handler()
42 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel, in MatMulDpInt8_optimize_handler() argument
44 …return MatmulInt8DpOpt(a, b, dst, row, col, deep_4, input_sum, bias, mini, maxi, output_zp, multip… in MatMulDpInt8_optimize_handler()
Dsigmoid_int8.cc34 const int32_t output_zp) { in CalculateTableList() argument
41 const int32_t quantized = std::round(sigmoid_value / output_scale) + output_zp; in CalculateTableList()
54 const int32_t output_zp = output->quant_params().front().zeroPoint; in Init() local
55 CalculateTableList(table_list_, input_scale, input_zp, output_scale, output_zp); in Init()
Dopt_op_handler.h45 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel);
49 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel,
/third_party/mindspore/mindspore/lite/micro/coder/wrapper/base/
Doptimize_handler_wrapper.c39 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel) { in MatMulRInt8_optimize_handler() argument
41output_zp, multiplier, left_shift, right_shift, row, col, stride, per_channel); in MatMulRInt8_optimize_handler()
46 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel, in MatMulDpInt8_optimize_handler() argument
48 …return MatmulInt8DpOpt(a, b, dst, row, col, deep_4, input_sum, bias, mini, maxi, output_zp, multip… in MatMulDpInt8_optimize_handler()
Doptimize_handler_wrapper.h34 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel);
38 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel,
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/
Dmatmul_parameter.h28 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel);
33 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel,

12