/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/ |
D | depth_to_space_int8.cc | 63 auto out_quant_args = out_tensor->quant_params(); in Init() local 64 CHECK_LESS_RETURN(out_quant_args.size(), 1); in Init() 65 out_quant_arg_->scale_ = out_quant_args.front().scale; in Init() 66 out_quant_arg_->zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | slice_int8.cc | 44 auto out_quant_args = output->quant_params(); in Init() local 45 CHECK_LESS_RETURN(out_quant_args.size(), 1); in Init() 46 param_->quant_arg_.out_args_.scale_ = out_quant_args.front().scale; in Init() 47 param_->quant_arg_.out_args_.zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | gather_int8.cc | 38 auto out_quant_args = out_tensors_.at(0)->quant_params(); in Init() local 39 CHECK_LESS_RETURN(out_quant_args.size(), 1); in Init() 40 param_.alpha_ = in_quant_args.front().scale / out_quant_args.front().scale; in Init() 42 param_.zp_out_ = out_quant_args.front().zeroPoint; in Init()
|
D | split_int8.cc | 51 auto out_quant_args = out_tensor->quant_params(); in Init() local 52 CHECK_LESS_RETURN(out_quant_args.size(), 1); in Init() 53 param->quant_arg_.out_args_[i].scale_ = out_quant_args.front().scale; in Init() 54 param->quant_arg_.out_args_[i].zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | power_int8.cc | 43 auto out_quant_args = output->quant_params(); in Init() local 44 CHECK_LESS_RETURN(out_quant_args.size(), 1); in Init() 45 param_->quant_arg_.out_args_.scale_ = out_quant_args.front().scale; in Init() 46 param_->quant_arg_.out_args_.zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | crop_int8.cc | 39 auto out_quant_args = out_tensor->quant_params(); in Init() local 40 crop_para_->quant_arg.out_args_.scale_ = out_quant_args.front().scale; in Init() 41 crop_para_->quant_arg.out_args_.zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | arithmetic_self_int8.cc | 40 auto out_quant_args = out_tensor->quant_params(); in Init() local 41 CHECK_LESS_RETURN(out_quant_args.size(), 1); in Init() 42 para_->quant_arg_.out_args_.scale_ = out_quant_args.front().scale; in Init() 43 para_->quant_arg_.out_args_.zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | argminmax_int8.cc | 59 auto out_quant_args = out_tensor->quant_params(); in Init() local 60 CHECK_LESS_RETURN(out_quant_args.size(), 1); in Init() 61 out_quant_arg_->scale_ = out_quant_args.front().scale; in Init() 62 out_quant_arg_->zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | reshape_int8.cc | 41 auto out_quant_args = out_tensor->quant_params(); in Init() local 42 reshape_param_->quant_para_.out_args_.scale_ = out_quant_args.front().scale; in Init() 43 reshape_param_->quant_para_.out_args_.zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | unsqueeze_int8.cc | 40 auto out_quant_args = input_tensor->quant_params(); in Init() local 41 param_->quant_arg.out_quant_args_.scale_ = out_quant_args.front().scale; in Init() 42 param_->quant_arg.out_quant_args_.zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | batch_to_space_int8.cc | 62 auto out_quant_args = out_tensor->quant_params(); in Init() local 63 out_quant_arg_->scale_ = out_quant_args.front().scale; in Init() 64 out_quant_arg_->zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | leaky_relu_int8.cc | 54 auto out_quant_args = out_tensor->quant_params(); in Init() local 55 quant_prelu_parm_.quant_arg.out_args_.scale_ = out_quant_args.front().scale; in Init() 56 quant_prelu_parm_.quant_arg.out_args_.zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | arithmetic_int8.cc | 95 auto out_quant_args = out_tensor->quant_params(); in Init() local 96 CHECK_LESS_RETURN(out_quant_args.size(), 1); in Init() 97 quant_args_.out_args_.scale_ = out_quant_args.front().scale; in Init() 98 quant_args_.out_args_.zp_ = out_quant_args.front().zeroPoint; in Init()
|
D | gatherNd_int8.cc | 53 auto out_quant_args = out_tensors_.at(0)->quant_params(); in ReSize() local 54 param_.alpha_ = in_quant_args.front().scale / out_quant_args.front().scale; in ReSize() 56 param_.zp_out_ = out_quant_args.front().zeroPoint; in ReSize()
|
D | softmax_int8.cc | 60 auto out_quant_args = out_tensor->quant_params(); in Init() local 61 quant_param_->out_quant_arg_.scale_ = out_quant_args.front().scale; in Init() 62 quant_param_->out_quant_arg_.zp_ = -out_quant_args.front().zeroPoint; in Init()
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/cmsis-nn/int8/ |
D | softmax_int8_coder.cc | 31 std::vector<LiteQuantParam> out_quant_args = output_tensor_->quant_params(); in Prepare() local 32 MS_CHECK_TRUE(!out_quant_args.empty(), "output quant_params is empty"); in Prepare() 33 quant_params_.out_quant_arg_.scale_ = static_cast<float>(out_quant_args.at(0).scale); in Prepare() 34 quant_params_.out_quant_arg_.zp_ = out_quant_args.at(0).zeroPoint; in Prepare()
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/ |
D | pooling_int8_coder.cc | 48 std::vector<LiteQuantParam> out_quant_args = out_tensor->quant_params(); in DoCode() local 61 …::QuantArg quant_arg_out = {static_cast<float>(out_quant_args.at(0).scale), out_quant_args.at(0).z… in DoCode()
|
D | softmax_int8_coder.cc | 37 std::vector<LiteQuantParam> out_quant_args = output_tensor_->quant_params(); in Prepare() local 38 quant_params_.out_quant_arg_.scale_ = out_quant_args.at(0).scale; in Prepare() 39 quant_params_.out_quant_arg_.zp_ = out_quant_args.at(0).zeroPoint; in Prepare()
|
D | concat_int8_coder.cc | 50 auto out_quant_args = output_tensor_->quant_params(); in Prepare() local 51 concat_param_->quant_arg_.out_args_.scale_ = out_quant_args.at(0).scale; in Prepare() 52 concat_param_->quant_arg_.out_args_.zp_ = out_quant_args.at(0).zeroPoint; in Prepare()
|
/third_party/mindspore/mindspore/lite/micro/coder/generator/component/ |
D | common_component.cc | 205 std::vector<LiteQuantParam> out_quant_args = out_tensor->quant_params(); in CodeGraphQuantArgsImplement() local 206 if (in_quant_args.empty() || out_quant_args.empty()) { in CodeGraphQuantArgsImplement() 212 …<< "\t\tGraphQuantArgs quan_args = { " << in_quant_args.at(0).scale << ", " << out_quant_args.at(0… in CodeGraphQuantArgsImplement() 213 << in_quant_args.at(0).zeroPoint << ", " << out_quant_args.at(0).zeroPoint << "};\n" in CodeGraphQuantArgsImplement()
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/serializers/nnacl_serializer/ |
D | nnacl_int8_serializer.cc | 99 ::QuantArg *out_quant_args = pooling_parameter.quant_args_[1]; in CodeStruct() 101 MS_CHECK_PTR_IF_NULL(out_quant_args); in CodeStruct() 104 code << "static QuantArg " << out_quant_name << " = " << *out_quant_args << ";\n"; in CodeStruct()
|