/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/ |
D | arg_min_max_int8.c | 40 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 …]
|
D | leaky_relu_int8.c | 25 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()
|
D | pooling_int8.c | 38 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 …]
|
D | power_int8.c | 23 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()
|
D | concat_int8.c | 31 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()
|
D | batch_to_space_int8.c | 33 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()
|
D | unsqueeze_int8.c | 25 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()
|
D | squeeze_int8.c | 24 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()
|
D | reshape_int8.c | 28 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()
|
D | matmul_int8.h | 46 … 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,
|
D | slice_int8.c | 24 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()
|
D | depth_to_space_int8.c | 28 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()
|
D | hswish_int8.h | 28 int32_t output_zp; member
|
D | matmul_int8.c | 200 … 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()
|
D | conv3x3_int8.c | 460 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()
|
D | conv_depthwise_int8.h | 38 const int8_t *input_zp, const int32_t *output_zp, const ConvParameter *conv_param,
|
D | common_func_int8.h | 36 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 …
|
D | hswish_int8.c | 47 output += arg->output_zp; in HSwishInt8()
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/ |
D | sigmoid_int8_coder.cc | 29 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/ |
D | opt_op_handler.cc | 35 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel) { in MatMulRInt8_optimize_handler() argument 37 … output_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()
|
D | sigmoid_int8.cc | 34 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()
|
D | opt_op_handler.h | 45 … 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/ |
D | optimize_handler_wrapper.c | 39 … int32_t output_zp, int32_t mini, int32_t maxi, size_t per_channel) { in MatMulRInt8_optimize_handler() argument 41 … output_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()
|
D | optimize_handler_wrapper.h | 34 … 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/ |
D | matmul_parameter.h | 28 … 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,
|