From 7ca49ff9efcc8b81b68e8732f49d85df4bfe5870 Mon Sep 17 00:00:00 2001 From: cjh9368 Date: Wed, 4 Nov 2020 14:17:57 +0800 Subject: [PATCH] recitify error log --- mindspore/lite/tools/converter/converter_flags.cc | 2 +- mindspore/lite/tools/converter/quantizer/weight_quantizer.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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")) {