/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, 37 const int32_t *out_multiplier, const int32_t *left_shift, 40 … int32_t left_shift, int32_t right_shift, int32_t acc_min, int32_t acc_max); 46 … const int32_t *out_zp, const int32_t *out_multiplier, const int32_t *left_shift, 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, 72 int32_t out_zp, const int32_t *out_multiplier, const int32_t *left_shift, 76 int32_t out_zp, const int32_t *out_multiplier, const int32_t *left_shift, 80 … const int32_t *left_shift, const int32_t *right_shift, size_t acc_min, size_t acc_max, [all …]
|
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 …ConvDwInt8PostAlign4PerChannel(dst, buffer, channel4, output_zp, out_multiplier, left_shift, right… in ConvDwInt8Post() 50 …SaturatingRoundingDoublingHighMul(buffer[c] * (1 << (unsigned int)left_shift[c]), out_multiplier[c… in ConvDwInt8Post() 65 …ConvDwInt8PostAlign4(dst, buffer, align_num, output_zp, out_multiplier[0], left_shift[0], right_sh… in ConvDwInt8Post() 70 …SaturatingRoundingDoublingHighMul(buffer[i] * (1 << (unsigned int)left_shift[0]), out_multiplier[0… in ConvDwInt8Post() 88 int *left_shift = conv_param->conv_quant_arg_.left_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 185 …SaturatingRoundingDoublingHighMul(tmp_buffer[c] * (1 << (unsigned int)left_shift[c]), out_multipli… in ConvDw3x3Int8Window() 196 …SaturatingRoundingDoublingHighMul(tmp_buffer[c] * (1 << (unsigned int)left_shift[0]), out_multipli… 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, 45 … size_t stride, const int32_t *input_sum, const int32_t *bias, const int32_t *left_shift, 54 … size_t stride, const int32_t *input_sum, const int32_t *bias, const int32_t *left_shift, 64 … size_t stride, const int32_t *input_sum, const int32_t *bias, const int32_t *left_shift, 70 … const int *bias, int act_min, int act_max, int out_zp, int32_t *multiplier, int32_t *left_shift, 79 … int *multiplier, int *left_shift, int *right_shift, int stride, int per_channel);
|
D | quantize.c | 38 …ameterWithDoublePrecision(double double_multiplier, int32_t *quantized_multiplier, int *left_shift, in QuantizeRoundParameterWithDoublePrecision() argument 44 *left_shift = 0; in QuantizeRoundParameterWithDoublePrecision() 47 *left_shift = shift; in QuantizeRoundParameterWithDoublePrecision() 52 …ameterWithSinglePrecision(double double_multiplier, int32_t *quantized_multiplier, int *left_shift, in QuantizeRoundParameterWithSinglePrecision() argument 65 *left_shift = 0; in QuantizeRoundParameterWithSinglePrecision() 68 *left_shift = shift; in QuantizeRoundParameterWithSinglePrecision()
|
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() 54 …Int8C4Neon64(in, bias, out, oc4div, oc4res, plane, stride * sizeof(int8_t), multiplier, left_shift, in PostFuncInt8C4()
|
D | matmul_int8.c | 199 … size_t stride, const int32_t *input_sum, const int32_t *bias, const int32_t *left_shift, in MatMulInt8_4x2_r() argument 220 int32_t cur_left_shift = peroc ? left_shift[c] : left_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 258 int32_t cur_left_shift = filter_peroc ? left_shift[c] : left_shift[0]; in MatmulInt8Opt() 272 … size_t stride, const int32_t *input_sum, const int32_t *bias, const int32_t *left_shift, in MatMulInt8_8x8_r() argument 292 int32_t cur_left_shift = per_channel ? left_shift[c] : left_shift[0]; in MatMulInt8_8x8_r() 305 … size_t stride, const int32_t *input_sum, const int32_t *bias, const int32_t *left_shift, in MatMulInt8_4x16_r() argument 324 int32_t cur_left_shift = per_channel ? left_shift[c] : left_shift[0]; in MatMulInt8_4x16_r()
|
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 | fixed_point.h | 45 int MultiplyByQuantizedMultiplier(int32_t value, int32_t multiplier, int32_t left_shift, int32_t ri… 47 …tiplyByQuantizedMultiplierWithUpwardRounding(int32_t value, int32_t multiplier, int32_t left_shift,
|
D | fixed_point.c | 61 int MultiplyByQuantizedMultiplier(int32_t value, int32_t multiplier, int32_t left_shift, int32_t ri… in MultiplyByQuantizedMultiplier() argument 62 …return RoundingDivideByPOT(SaturatingRoundingDoublingHighMul(value * (1 << left_shift), multiplier… in MultiplyByQuantizedMultiplier() 65 …tiplyByQuantizedMultiplierWithUpwardRounding(int32_t value, int32_t multiplier, int32_t left_shift, in MultiplyByQuantizedMultiplierWithUpwardRounding() argument 67 …return UpwardRounding(SaturatingRoundingDoublingHighMul(value * (1 << left_shift), multiplier), -r… in MultiplyByQuantizedMultiplierWithUpwardRounding()
|
D | quantize.h | 198 …ameterWithDoublePrecision(double double_multiplier, int32_t *quantized_multiplier, int *left_shift, 201 …ameterWithSinglePrecision(double double_multiplier, int32_t *quantized_multiplier, int *left_shift,
|
D | conv3x3_int8.c | 457 int32_t *left_shift = conv_param->conv_quant_arg_.left_shift_; in Conv3x3Int8OutputUnit() local 508 ls = vld1q_s32(left_shift + oc_start); in Conv3x3Int8OutputUnit() 512 ls = vdupq_n_s32(left_shift[0]); in Conv3x3Int8OutputUnit() 626 …SaturatingRoundingDoublingHighMul(d00 * (1 << (unsigned int)left_shift[oc_index]), quant_multiplie… in Conv3x3Int8OutputUnit() 633 …SaturatingRoundingDoublingHighMul(d01 * (1 << (unsigned int)left_shift[oc_index]), quant_multiplie… in Conv3x3Int8OutputUnit() 640 …SaturatingRoundingDoublingHighMul(d10 * (1 << (unsigned int)left_shift[oc_index]), quant_multiplie… in Conv3x3Int8OutputUnit() 647 …SaturatingRoundingDoublingHighMul(d11 * (1 << (unsigned int)left_shift[oc_index]), quant_multiplie… in Conv3x3Int8OutputUnit() 706 … SaturatingRoundingDoublingHighMul(d00 * (1 << (unsigned int)left_shift[0]), quant_multiplier[0]), in Conv3x3Int8OutputUnit() 713 … SaturatingRoundingDoublingHighMul(d01 * (1 << (unsigned int)left_shift[0]), quant_multiplier[0]), in Conv3x3Int8OutputUnit() 720 … SaturatingRoundingDoublingHighMul(d10 * (1 << (unsigned int)left_shift[0]), quant_multiplier[0]), in Conv3x3Int8OutputUnit() [all …]
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/ |
D | sub_int8_coder.cc | 44 const uint32_t left_shift = 20; in Prepare() local 48 …const double real_output_multiplier = twice_max_input_scale / ((1 << left_shift) * param_.out_args… in Prepare() 66 param_.left_shift_result0_ = (1 << left_shift) * ((1 << left_shift0)); in Prepare() 67 param_.left_shift_result1_ = (1 << left_shift) * ((1 << left_shift1)); in Prepare() 69 MS_CHECK_TRUE(left_shift + left_shift0 == left_shift, "shift not match"); in Prepare() 70 MS_CHECK_TRUE(left_shift + left_shift1 == left_shift, "shift not match"); in Prepare()
|
/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 48 …8DpOpt(a, b, dst, row, col, deep_4, input_sum, bias, mini, maxi, output_zp, multiplier, left_shift, 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/src/runtime/kernel/arm/int8/ |
D | sub_int8.cc | 56 const int left_shift = 20; in Init() local 60 …const double real_output_multiplier = twice_max_input_scale / ((1 << left_shift) * quant_param_->o… in Init() 81 quant_param_->left_shift_result0_ = (1 << left_shift) * ((1 << left_shift0)); in Init() 82 quant_param_->left_shift_result1_ = (1 << left_shift) * ((1 << left_shift1)); in Init() 84 MS_ASSERT(left_shift + left_shift0 == left_shift); in Init() 85 MS_ASSERT(left_shift + left_shift1 == left_shift); 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 44 …8DpOpt(a, b, dst, row, col, deep_4, input_sum, bias, mini, maxi, output_zp, multiplier, left_shift, 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,
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_format_convert.h | 29 nir_shift_imm(nir_builder *b, nir_ssa_def *value, int left_shift) in nir_shift_imm() argument 31 if (left_shift > 0) in nir_shift_imm() 32 return nir_ishl(b, value, nir_imm_int(b, left_shift)); in nir_shift_imm() 33 else if (left_shift < 0) in nir_shift_imm() 34 return nir_ushr(b, value, nir_imm_int(b, -left_shift)); in nir_shift_imm() 40 nir_shift(nir_builder *b, nir_ssa_def *value, nir_ssa_def *left_shift) in nir_shift() argument 43 nir_ige(b, left_shift, nir_imm_int(b, 0)), in nir_shift() 44 nir_ishl(b, value, left_shift), in nir_shift() 45 nir_ushr(b, value, nir_ineg(b, left_shift))); in nir_shift() 50 uint32_t mask, int left_shift) in nir_mask_shift() argument [all …]
|
/third_party/mindspore/mindspore/lite/micro/example/mnist_x86/src/ |
D | net.c | 132 int left_shift[1] = {0}; in Inference() local 135 …, 0}, {0.3623915016651153564, 11}, -128, 127, filter_scale, filter_zp, left_shift, right_shift, mu… in Inference() 148 int left_shift[1] = {0}; in Inference() local 151 …, 0}, {1.073398709297180176, -20}, -128, 127, filter_scale, filter_zp, left_shift, right_shift, mu… 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/flutter/skia/src/utils/ |
D | SkUTF.cpp | 8 static constexpr inline int32_t left_shift(int32_t value, int32_t shift) { in left_shift() function 134 hic = left_shift(hic, 1); in NextUTF8() 147 } while ((hic = left_shift(hic, 1)) < 0); in NextUTF8()
|
/third_party/boost/boost/safe_numerics/ |
D | checked_default.hpp | 105 left_shift(const R & t, const R & u) noexcept { in left_shift() function 189 constexpr checked_result<R> left_shift(const R & t, const R & u) noexcept { in left_shift() function 190 return checked_operation<R>::left_shift(t, u); in left_shift()
|
D | checked_integer.hpp | 613 constexpr static checked_result<R> left_shift( in left_shift() function 638 constexpr static checked_result<R> left_shift( in left_shift() function 674 constexpr static checked_result<R> left_shift( in left_shift() function 696 return left_shift_integer_detail::left_shift(t, u, std::is_signed<R>()); in left_shift()
|
/third_party/skia/src/utils/ |
D | SkUTF.cpp | 9 static constexpr inline int32_t left_shift(int32_t value, int32_t shift) { in left_shift() function 135 hic = left_shift(hic, 1); in NextUTF8() 148 } while ((hic = left_shift(hic, 1)) < 0); in NextUTF8()
|