diff --git a/mindspore/lite/tools/converter/converter_flags.cc b/mindspore/lite/tools/converter/converter_flags.cc index 743264d056..c40c1e8dd1 100644 --- a/mindspore/lite/tools/converter/converter_flags.cc +++ b/mindspore/lite/tools/converter/converter_flags.cc @@ -137,7 +137,7 @@ int Flags::Init(int argc, const char **argv) { } else if (this->quantTypeIn.empty()) { this->quantType = QuantType_QUANT_NONE; } else { - std::cerr << "INPUT ILLEGAL: quantType must be AwareTraining|WeightQuant|PostTraining"; + std::cerr << "INPUT ILLEGAL: quantType must be WeightQuant|PostTraining"; return RET_INPUT_PARAM_INVALID; } diff --git a/mindspore/lite/tools/converter/quantizer/weight_quantizer.cc b/mindspore/lite/tools/converter/quantizer/weight_quantizer.cc index 04ba288305..82c92e5032 100644 --- a/mindspore/lite/tools/converter/quantizer/weight_quantizer.cc +++ b/mindspore/lite/tools/converter/quantizer/weight_quantizer.cc @@ -41,11 +41,11 @@ bool WeightQuantizer::IsPosNum(const std::string &str) { STATUS WeightQuantizer::WeightQuantInputCheck(const converter::Flags *config) { MS_ASSERT(config != nullptr); if (!WeightQuantizer::IsPosNum(config->quantWeightChannel)) { - MS_LOG(ERROR) << "convWeightQuantChannelThreshold must be valid pos num."; + MS_LOG(ERROR) << "quantWeightChannel must be valid pos num."; return RET_ERROR; } if (!WeightQuantizer::IsPosNum(config->quantWeightSize)) { - MS_LOG(ERROR) << "quantSize must be valid pos num."; + MS_LOG(ERROR) << "quantWeightSize must be valid pos num."; return RET_ERROR; } if (!WeightQuantizer::IsPosNum(config->bitNum) || (config->bitNum != "8" && config->bitNum != "16")) {