/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/ |
D | arithmetic_int8.c | 55 float in1_bias = -quant_arg->in1_args_.zp_ * quant_arg->in1_args_.scale_; in ElementNotEqualInt8() 59 float in1_real = input1[index] * quant_arg->in1_args_.scale_ + in1_bias; in ElementNotEqualInt8() 72 float in1_bias = -quant_arg->in1_args_.zp_ * quant_arg->in1_args_.scale_; in ElementEqualInt8() 75 float in1_real = input1[index] * quant_arg->in1_args_.scale_ + in1_bias; in ElementEqualInt8() 88 float in1_bias = -quant_arg->in1_args_.zp_ * quant_arg->in1_args_.scale_; in ElementLessInt8() 91 float in1_real = input1[index] * quant_arg->in1_args_.scale_ + in1_bias; in ElementLessInt8() 101 float in1_bias = -quant_arg->in1_args_.zp_ * quant_arg->in1_args_.scale_; in ElementLessEqualInt8() 104 float in1_real = input1[index] * quant_arg->in1_args_.scale_ + in1_bias; in ElementLessEqualInt8() 114 float in1_bias = -quant_arg->in1_args_.zp_ * quant_arg->in1_args_.scale_; in ElementGreaterInt8() 117 float in1_real = input1[index] * quant_arg->in1_args_.scale_ + in1_bias; in ElementGreaterInt8() [all …]
|
D | add_int8.c | 80 int in1_left_shift = (1 << params->left_shift_) * (1 << params->in1_args_.left_shift_); in AddInt8() 87 const int16x8_t in1_zp_vec = vdupq_n_s16(params->in1_args_.zp_); in AddInt8() 94 const int32x4_t in1_right_vec = vdupq_n_s32(-params->in1_args_.right_shift_); in AddInt8() 123 …unding(&in1_1, &in1_2, &in1_3, &in1_4, in1_left_vec, in1_right_vec, params->in1_args_.multiplier_); in AddInt8() 149 const int32_t in1_left = (input1[index] + params->in1_args_.zp_) * in1_left_shift; in AddInt8() 153 …MultiplyByMultiplierAndRightShift(in1_left, params->in1_args_.multiplier_, params->in1_args_.right… in AddInt8() 306 const int in1_left_shift = (1 << params->left_shift_) * (1 << params->in1_args_.left_shift_); in AddInt8_AVX2() 310 const __m128i in1_zp_vec = _mm_set1_epi16(params->in1_args_.zp_); in AddInt8_AVX2() 315 const __m128i in1_multiplier = _mm_set1_epi32(params->in1_args_.multiplier_); in AddInt8_AVX2() 348 …AddInt8Rounding(&in1_1, &in1_2, &in1_3, &in1_4, in1_left_vec, params->in1_args_.right_shift_, in1_… in AddInt8_AVX2() [all …]
|
D | quantize.h | 104 QuantArg in1_args_; member 124 QuantArg in1_args_; member 130 QuantArg in1_args_; member
|
D | sub_int8.c | 51 int16x8_t input1_val = LoadAndAddOffset(input1_data, *index, para->in1_args_.zp_); in SubInt8NEON() 87 const int32_t input1_val = para->in1_args_.zp_ + input1_data[index]; in SubInt8()
|
D | div_int8.c | 24 const int32_t input1_val = para->in1_args_.zp_ + input1_data[index]; in DivInt8()
|
D | add_int8.h | 37 AddQuantQrgs in1_args_; member
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/ |
D | add_int8_coder.cc | 47 para_.in1_args_.zp_ = input1->quant_params().front().zeroPoint * -1; in Init() 61 …QuantizeMultiplierSmallerThanOne(in1_multiplier, ¶_.in1_args_.multiplier_, ¶_.in1_args_.le… in Init() 65 para_.in1_args_.right_shift_ = -para_.in1_args_.left_shift_ > 0 ? 0 : para_.in1_args_.left_shift_; in Init() 69 para_.in1_args_.left_shift_ = -para_.in1_args_.left_shift_ > 0 ? -para_.in1_args_.left_shift_ : 0; in Init()
|
D | sub_int8_coder.cc | 39 param_.in1_args_.scale_ = input1->quant_params().front().scale; in Prepare() 40 param_.in1_args_.zp_ = -input1->quant_params().front().zeroPoint; in Prepare() 45 …const double twice_max_input_scale = 2 * std::max(param_.in0_args_.scale_, param_.in1_args_.scale_… in Prepare() 47 const double real_input1_multiplier = param_.in1_args_.scale_ / twice_max_input_scale; in Prepare()
|
D | div_int8_coder.cc | 37 param_.in1_args_.scale_ = input1->quant_params().front().scale; in Prepare() 38 param_.in1_args_.zp_ = -input1->quant_params().front().zeroPoint; in Prepare() 42 …const double real_multiplier = param_.in0_args_.scale_ / (param_.in1_args_.scale_ * param_.out_arg… in Prepare()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/ |
D | add_int8.cc | 52 para_->in1_args_.zp_ = input1->quant_params().front().zeroPoint * -1; in Init() 66 …ntizeMultiplierSmallerThanOne(in1_multiplier, &(para_->in1_args_.multiplier_), &(para_->in1_args_.… in Init() 70 …para_->in1_args_.right_shift_ = -para_->in1_args_.left_shift_ > 0 ? 0 : para_->in1_args_.left_shif… in Init() 74 …para_->in1_args_.left_shift_ = -para_->in1_args_.left_shift_ > 0 ? -para_->in1_args_.left_shift_ :… in Init() 220 …AddQuantQrgs *ptr_args = arith_para_->in_elements_num0_ == 1 ? &(para_->in1_args_) : &(para_->in0_… in DoExecute() 221 …ntQrgs *ele_args = arith_para_->in_elements_num0_ == 1 ? &(para_->in0_args_) : &(para_->in1_args_); in DoExecute()
|
D | sub_int8.cc | 51 quant_param_->in1_args_.scale_ = input1->quant_params().front().scale; in Init() 52 quant_param_->in1_args_.zp_ = -input1->quant_params().front().zeroPoint; in Init() 57 …ice_max_input_scale = 2 * std::max(quant_param_->in0_args_.scale_, quant_param_->in1_args_.scale_); in Init() 59 const double real_input1_multiplier = quant_param_->in1_args_.scale_ / twice_max_input_scale; in Init()
|
D | div_int8.cc | 53 quant_args_->in1_args_.scale_ = input1->quant_params().front().scale; in Init() 54 quant_args_->in1_args_.zp_ = -input1->quant_params().front().zeroPoint; in Init() 59 quant_args_->in0_args_.scale_ / (quant_args_->in1_args_.scale_ * quant_args_->out_args_.scale_); in Init()
|
D | arithmetic_int8.cc | 91 quant_args_.in1_args_.scale_ = in1_quant_args.front().scale; in Init() 92 quant_args_.in1_args_.zp_ = in1_quant_args.front().zeroPoint; in Init()
|
/third_party/mindspore/mindspore/lite/micro/coder/wrapper/int8/ |
D | add_int8_wrapper.c | 61 args->arith_para_->in_elements_num0_ == 1 ? &args->para_->in1_args_ : &args->para_->in0_args_; in AddInt8Run() 63 args->arith_para_->in_elements_num0_ == 1 ? &args->para_->in0_args_ : &args->para_->in1_args_; in AddInt8Run()
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/serializers/nnacl_serializer/ |
D | nnacl_int8_serializer.cc | 76 … add_quant_parameter.max_, add_quant_parameter.in0_args_, add_quant_parameter.in1_args_, in CodeStruct() 215 …CodeBaseStruct("SubQuantArg", name, sub_quant_arg.in0_args_, sub_quant_arg.in1_args_, sub_quant_ar… in CodeStruct() 224 …CodeBaseStruct("DivQuantArg", name, div_quant_arg.in0_args_, div_quant_arg.in1_args_, div_quant_ar… in CodeStruct()
|