Home
last modified time | relevance | path

Searched refs:right_shift (Results 1 – 25 of 56) sorted by relevance

123

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dcommon_func_int8.h31 … 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 …]
Dquantize.c29 …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()
Dconv_depthwise_int8.c37 … 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 …]
Dmatmul_int8.h38 … 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);
Dconv1x1_int8.c20 … 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()
Dcommon_func_int8.c22 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()
Dfixed_point.h45 …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);
Dmatmul_int8.c200 … 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()
Dfixed_point.c61 …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()
Dconv1x1_int8.h35 … 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,
Dquantize.h196 …ultiplierSmallerThanOne(double double_multiplier, int32_t *quantized_multiplier, int *right_shift);
199 int *right_shift);
202 int *right_shift);
Dconv3x3_int8.c458 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 …]
Dadd_int8.c267 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/
Doptimize_handler_wrapper.c23 … 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()
Doptimize_handler_wrapper.h33 … 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/
Dsoftmax_int8_coder.cc45 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/
Dsoftmax_int8.cc68 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()
Darithmetic_self_int8.cc52 int right_shift = 0; in Init() local
53 …tizeMultiplierSmallerThanOne(real_multiplier, &para_->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()
Dopt_op_handler.cc34 … 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()
Dopt_op_handler.h29 … 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,
Dmul_int8.cc59 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/
Dnet.c133 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/
Dmatmul_parameter.h27 … 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/
Dchecked_default.hpp109 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()
Dchecked_integer.hpp708 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()

123