/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/ |
D | common_func_int8.h | 31 … int32_t multiplier, int32_t left_shift, int32_t right_shift, int32_t zp, int32_t mini, 38 const int32_t *right_shift, int32_t acc_min, int32_t acc_max); 40 … int32_t left_shift, int32_t right_shift, int32_t acc_min, int32_t acc_max); 47 const int32_t *right_shift, const int32_t *acc_min, const int32_t *acc_max); 52 … int out_multiplier, int left_shift, int right_shift, int32_t out_zp, int32_t acc_min, 62 … const int32_t *out_multiplier, const int32_t *left_shift, const int32_t *right_shift, 68 … size_t plane, size_t stride, int32_t multiplier, int32_t left_shift, int32_t right_shift, 73 … const int32_t *right_shift, int32_t acc_min, int32_t acc_max, size_t per_channel); 77 … const int32_t *right_shift, int32_t acc_min, int32_t acc_max, size_t per_channel); 80 … const int32_t *left_shift, const int32_t *right_shift, size_t acc_min, size_t acc_max, [all …]
|
D | quantize.c | 29 …ltiplierSmallerThanOne(double double_multiplier, int32_t *quantized_multiplier, int *right_shift) { in QuantizeMultiplierSmallerThanOne() argument 30 if (quantized_multiplier == NULL || right_shift == NULL) { in QuantizeMultiplierSmallerThanOne() 35 *right_shift = -shift; in QuantizeMultiplierSmallerThanOne() 39 int *right_shift) { in QuantizeRoundParameterWithDoublePrecision() argument 45 *right_shift = shift; in QuantizeRoundParameterWithDoublePrecision() 48 *right_shift = 0; in QuantizeRoundParameterWithDoublePrecision() 53 int *right_shift) { in QuantizeRoundParameterWithSinglePrecision() argument 66 *right_shift = shift; in QuantizeRoundParameterWithSinglePrecision() 69 *right_shift = 0; in QuantizeRoundParameterWithSinglePrecision()
|
D | conv_depthwise_int8.c | 37 … const int32_t *out_multiplier, const int32_t *left_shift, const int32_t *right_shift, in ConvDwInt8Post() argument 45 …lign4PerChannel(dst, buffer, channel4, output_zp, out_multiplier, left_shift, right_shift, acc_min, in ConvDwInt8Post() 51 -right_shift[c]); in ConvDwInt8Post() 65 …lign4(dst, buffer, align_num, output_zp, out_multiplier[0], left_shift[0], right_shift[0], acc_min, in ConvDwInt8Post() 71 -right_shift[0]); in ConvDwInt8Post() 89 int *right_shift = conv_param->conv_quant_arg_.right_shift_; in ConvDwInt8() local 136 out_multiplier, left_shift, right_shift, acc_min, acc_max, filter_per_channel); in ConvDwInt8() 158 … const int32_t *out_multiplier, const int32_t *left_shift, const int32_t *right_shift, in ConvDw3x3Int8Window() argument 186 -right_shift[c]); in ConvDw3x3Int8Window() 197 -right_shift[0]); in ConvDw3x3Int8Window() [all …]
|
D | matmul_int8.h | 38 … const int32_t *left_shift, const int32_t *right_shift, size_t stride, size_t filter_peroc, 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, 71 int32_t *right_shift, int row, int col, int stride, int filter_peroc); 79 … int *multiplier, int *left_shift, int *right_shift, int stride, int per_channel);
|
D | conv1x1_int8.c | 20 … const int32_t *bias, int row, int col, int deep4, int32_t *left_shift, int32_t *right_shift, in Conv1x1Int8Opt() argument 25 … left_shift, right_shift, multiplier, conv_param->conv_quant_arg_.output_quant_args_[0].zp_, in Conv1x1Int8Opt() 32 … const int32_t *bias, int row, int col, int deep16, int32_t *left_shift, int32_t *right_shift, in Conv1x1Int8() argument 37 … conv_param->conv_quant_arg_.output_quant_args_[0].zp_, multiplier, left_shift, right_shift, in Conv1x1Int8()
|
D | common_func_int8.c | 22 int32_t left_shift, int32_t right_shift, int32_t zp, int size) { in PostConvFuncCommInt8() argument 35 value = MultiplyByQuantizedMultiplier(value, multiplier, left_shift, right_shift) + zp; in PostConvFuncCommInt8() 45 … int32_t multiplier, int32_t left_shift, int32_t right_shift, int32_t zp, int32_t mini, in PostFuncInt8C4() argument 50 left_shift, right_shift, zp, C4NUM); in PostFuncInt8C4() 55 right_shift, zp, mini, maxi); in PostFuncInt8C4()
|
D | fixed_point.h | 45 …yByQuantizedMultiplier(int32_t value, int32_t multiplier, int32_t left_shift, int32_t right_shift); 48 int32_t right_shift); 50 int MultiplyByMultiplierAndRightShift(int32_t value, int32_t multiplier, int32_t right_shift);
|
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 221 int32_t cur_right_shift = peroc ? right_shift[c] : right_shift[0]; in MatMulInt8_4x2_r() 235 … const int32_t *left_shift, const int32_t *right_shift, size_t stride, size_t filter_peroc, in MatmulInt8Opt() argument 259 int32_t cur_right_shift = filter_peroc ? right_shift[c] : right_shift[0]; in MatmulInt8Opt() 273 … const int32_t *right_shift, const int32_t *multiplier, int32_t output_zp, int32_t mini, in MatMulInt8_8x8_r() argument 293 int32_t cur_right_shift = per_channel ? right_shift[c] : right_shift[0]; 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 325 int32_t cur_right_shift = per_channel ? right_shift[c] : right_shift[0]; in MatMulInt8_4x16_r()
|
D | fixed_point.c | 61 …ByQuantizedMultiplier(int32_t value, int32_t multiplier, int32_t left_shift, int32_t right_shift) { in MultiplyByQuantizedMultiplier() argument 62 …ivideByPOT(SaturatingRoundingDoublingHighMul(value * (1 << left_shift), multiplier), -right_shift); in MultiplyByQuantizedMultiplier() 66 int32_t right_shift) { in MultiplyByQuantizedMultiplierWithUpwardRounding() argument 67 …rdRounding(SaturatingRoundingDoublingHighMul(value * (1 << left_shift), multiplier), -right_shift); in MultiplyByQuantizedMultiplierWithUpwardRounding() 70 int MultiplyByMultiplierAndRightShift(int32_t value, int32_t multiplier, int32_t right_shift) { in MultiplyByMultiplierAndRightShift() argument 71 return RoundingDivideByPOT(SaturatingRoundingDoublingHighMul(value, multiplier), right_shift); in MultiplyByMultiplierAndRightShift()
|
D | conv1x1_int8.h | 35 … const int32_t *bias, int row, int col, int deep16, int32_t *left_shift, int32_t *right_shift, 38 … const int32_t *bias, int row, int col, int deep4, int32_t *left_shift, int32_t *right_shift,
|
D | quantize.h | 196 …ultiplierSmallerThanOne(double double_multiplier, int32_t *quantized_multiplier, int *right_shift); 199 int *right_shift); 202 int *right_shift);
|
D | conv3x3_int8.c | 458 int32_t *right_shift = conv_param->conv_quant_arg_.right_shift_; in Conv3x3Int8OutputUnit() local 509 rs = vld1q_s32(right_shift + oc_start); in Conv3x3Int8OutputUnit() 513 rs = vdupq_n_s32(right_shift[0]); in Conv3x3Int8OutputUnit() 627 -right_shift[oc_index]); in Conv3x3Int8OutputUnit() 634 -right_shift[oc_index]); in Conv3x3Int8OutputUnit() 641 -right_shift[oc_index]); in Conv3x3Int8OutputUnit() 648 -right_shift[oc_index]); in Conv3x3Int8OutputUnit() 707 -right_shift[0]); in Conv3x3Int8OutputUnit() 714 -right_shift[0]); in Conv3x3Int8OutputUnit() 721 -right_shift[0]); in Conv3x3Int8OutputUnit() [all …]
|
D | add_int8.c | 267 const int32_t right_shift, const __m128i multiplier) { in AddInt8Rounding() argument 281 int32_t in1_remainder_mask = (1ll << (right_shift)) - 1; in AddInt8Rounding() 288 …*in1 = _mm_sub_epi32(_mm_rshr_epi32(*in1, right_shift), _mm_cmpgt_epi32(in1_remainder, vin1_remain… in AddInt8Rounding() 292 …*in2 = _mm_sub_epi32(_mm_rshr_epi32(*in2, right_shift), _mm_cmpgt_epi32(in2_remainder, vin1_remain… in AddInt8Rounding() 296 …*in3 = _mm_sub_epi32(_mm_rshr_epi32(*in3, right_shift), _mm_cmpgt_epi32(in3_remainder, vin1_remain… in AddInt8Rounding() 300 …*in4 = _mm_sub_epi32(_mm_rshr_epi32(*in4, right_shift), _mm_cmpgt_epi32(in4_remainder, vin1_remain… in AddInt8Rounding()
|
/third_party/mindspore/mindspore/lite/micro/coder/wrapper/base/ |
D | optimize_handler_wrapper.c | 23 … const int *multiplier, const int *left_shift, const int *right_shift, int row, int col, 27 … const int *multiplier, const int *left_shift, const int *right_shift, size_t stride, 38 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier, in MatMulRInt8_optimize_handler() argument 41 … output_zp, multiplier, left_shift, right_shift, row, col, stride, per_channel); in MatMulRInt8_optimize_handler() 45 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier, in MatMulDpInt8_optimize_handler() argument 49 right_shift, stride, per_channel, filter_zp); in MatMulDpInt8_optimize_handler()
|
D | optimize_handler_wrapper.h | 33 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier, 37 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier,
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/ |
D | softmax_int8_coder.cc | 45 int right_shift = 0; in Prepare() local 46 …zeMultiplierSmallerThanOne(input_real_multiplier, &quant_params_.output_multiplier_, &right_shift); in Prepare() 47 quant_params_.shift_left_ = right_shift < 0 ? -right_shift : 0; in Prepare() 48 quant_params_.shift_right_ = right_shift < 0 ? -right_shift : 0; in Prepare()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/ |
D | softmax_int8.cc | 68 int right_shift = 0; in Init() local 69 …zeMultiplierSmallerThanOne(input_real_multiplier, &quant_param_->output_multiplier_, &right_shift); in Init() 70 quant_param_->shift_left_ = right_shift < 0 ? -right_shift : 0; in Init() 71 quant_param_->shift_right_ = right_shift > 0 ? right_shift : 0; in Init()
|
D | arithmetic_self_int8.cc | 52 int right_shift = 0; in Init() local 53 …tizeMultiplierSmallerThanOne(real_multiplier, ¶_->quant_arg_.output_multiplier_, &right_shift); in Init() 55 para_->quant_arg_.shift_left_ = right_shift < 0 ? -right_shift : 0; in Init() 56 para_->quant_arg_.shift_right_ = right_shift > 0 ? right_shift : 0; in Init()
|
D | opt_op_handler.cc | 34 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier, in MatMulRInt8_optimize_handler() argument 37 … output_zp, multiplier, left_shift, right_shift, row, col, stride, per_channel); in MatMulRInt8_optimize_handler() 41 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier, in MatMulDpInt8_optimize_handler() argument 45 right_shift, stride, per_channel, filter_zp); in MatMulDpInt8_optimize_handler()
|
D | opt_op_handler.h | 29 … const int *left_shift, const int *right_shift, int row, int col, int stride, size_t peroc); 32 … const int *left_shift, const int *right_shift, size_t stride, size_t peroc, const int *filter_zp); 44 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier, 48 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier,
|
D | mul_int8.cc | 59 int right_shift = 0; in Init() local 60 QuantizeMultiplierSmallerThanOne(real_multiplier, &quant_args_->output_multiplier_, &right_shift); in Init() 62 quant_args_->shift_left_ = right_shift < 0 ? -right_shift : 0; in Init() 63 quant_args_->shift_right_ = right_shift > 0 ? right_shift : 0; in Init()
|
/third_party/mindspore/mindspore/lite/micro/example/mnist_x86/src/ |
D | net.c | 133 int right_shift[1] = {-8}; in Inference() local 135 …3623915016651153564, 11}, -128, 127, filter_scale, filter_zp, left_shift, right_shift, multiplier}; in Inference() 149 int right_shift[1] = {-8}; in Inference() local 151 …073398709297180176, -20}, -128, 127, filter_scale, filter_zp, left_shift, right_shift, multiplier}; in Inference()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/ |
D | matmul_parameter.h | 27 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier, 32 … const int32_t *left_shift, const int32_t *right_shift, const int32_t *multiplier,
|
/third_party/boost/boost/safe_numerics/ |
D | checked_default.hpp | 109 right_shift(const R & t, const R & u) noexcept { in right_shift() function 193 constexpr checked_result<R> right_shift(const R & t, const R & u) noexcept { in right_shift() function 194 return checked_operation<R>::right_shift(t, u); in right_shift()
|
D | checked_integer.hpp | 708 constexpr static checked_result<R> right_shift( in right_shift() function 718 constexpr static checked_result<R> right_shift( in right_shift() function 736 constexpr static checked_result<R> right_shift( in right_shift() function 755 return right_shift_integer_detail::right_shift(t, u ,std::is_signed<R>()); in right_shift()
|