Home
last modified time | relevance | path

Searched refs:in_zp_ (Results 1 – 11 of 11) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dreduce_int8.c190 int32_t tmp = inner_src[i * inner_size] - quant->in_zp_; in ReduceMeanInt8()
199 if (isAddOverflow(mean, quant->in_zp_)) { in ReduceMeanInt8()
202 *inner_dst = mean + quant->in_zp_; in ReduceMeanInt8()
224 int32_t tmp = inner_src[i * inner_size] - quant->in_zp_; in ReduceMeanLastAxis()
265 int32_t tmp = inner_src[i * inner_size] - quant->in_zp_; in ReduceSumInt8()
272 if (isAddOverflow(quant->in_zp_, sum)) { in ReduceSumInt8()
275 *inner_dst = sum + quant->in_zp_; in ReduceSumInt8()
297 int32_t tmp = inner_src[i * inner_size] - quant->in_zp_; in ReduceSumLastAxis()
340 …SaturatingRoundingDoublingHighMul((tmp - quant->in_zp_) * (1 << (unsigned int)quant->in_out_left_s… in ReduceMaxLastAxis()
401 … (tmp - quant->in_zp_) * (1 << ((unsigned int)quant->in_out_left_shift_ + base_offset)), in ReduceMinLastAxis()
[all …]
Dlayer_norm_int8.c22 float fp32_src = (src[i] - quant->in_zp_) * quant->in_scale_; in LayerNormGammaAndBetaInt8()
51 float float_src = (src_norm[j] - quant->in_zp_) * quant->in_scale_; in LayerNormInt8()
Dtanh_int8.h27 int32_t in_zp_; member
Dtanh_int8.c24 float fp32_src = (input_ptr[i] - quant->in_zp_) * quant->in_scale_; in TanhInt8()
Dquantize.h140 int32_t in_zp_; member
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/
Dlayer_norm_parameter.h43 int32_t in_zp_; member
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Dtanh_int8.cc28 tanh_quant_.in_zp_ = input->quant_params().front().zeroPoint; in Init()
Dlayer_norm_int8.cc55 quant_param_->in_zp_ = input->quant_params().front().zeroPoint; in SetQuantArgs()
Dreduce_int8.cc213 bias_ = quant_arg_.out_zp_ - quant_arg_.in_zp_ * quant_arg_.in_scale_ / quant_arg_.out_scale_; in ReduceMean4DCalQuantParam()
234 quant_arg_.in_zp_ = input->quant_params().front().zeroPoint; in CalculateQuantArgs()
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/
Dreduce_int8_coder.cc30 quant_arg_.in_zp_ = input_quant.zeroPoint; in CalculateQuantArgs()
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/serializers/nnacl_serializer/
Dnnacl_int8_serializer.cc190 …"ReduceQuantArg", name, reduce_quant_arg.in_scale_, reduce_quant_arg.in_zp_, reduce_quant_arg.out_… in CodeStruct()