!18446 [LITE] fix log print

Merge pull request !18446 from yefeng/120-fix_log_print
This commit is contained in:
i-robot 2021-06-18 01:22:58 +00:00 committed by Gitee
commit 27bfc6375b
3 changed files with 4 additions and 4 deletions

View File

@ -16,5 +16,5 @@ deconvs_model
# onnx
ml_2012_ocr_cn.onnx
# aware_training
video_infer.tflite
video_infer2.tflite
mobilenet_v1_1.0_224_quant.tflite

View File

@ -222,7 +222,7 @@ bool SparsityCompress(const std::set<T> &quant_data_set, const std::map<T, size_
tensor->data.resize(new_data_str.size());
tensor->weightQunatCompressType = schema::WeightQunatCompressType_SPARSE;
MS_LOG(ERROR) << "set WeightQunatCompressType_SPARSITY";
MS_LOG(INFO) << "set WeightQunatCompressType_SPARSITY";
return true;
}

View File

@ -42,7 +42,7 @@ bool IsSpecialType(const CNodePtr &cnode) {
STATUS GetTensorInfoFromAbstract(tensor::TensorPtr *tensor_info, const CNodePtr &cnode, size_t index) {
AbstractBasePtr abstract = GetCNodeInputAbstract(cnode, index);
if (abstract == nullptr) {
MS_LOG(ERROR) << "Abstract of CNode: " << cnode->fullname_with_scope() << " is nullptr";
MS_LOG(WARNING) << "Abstract of CNode: " << cnode->fullname_with_scope() << " is nullptr, infershape is delayed.";
return RET_ERROR;
}
if (!utils::isa<abstract::AbstractTensorPtr>(abstract)) {
@ -241,7 +241,7 @@ STATUS InferShapePass::GetCNodeOutputTensors(const CNodePtr &cnode, std::vector<
MS_ASSERT(output_tensors != nullptr);
auto abstract = cnode->abstract();
if (abstract == nullptr) {
MS_LOG(ERROR) << "node " << cnode->fullname_with_scope() << " abstract is nullptr";
MS_LOG(WARNING) << "node " << cnode->fullname_with_scope() << " abstract is nullptr, infershape is delayed.";
return RET_ERROR;
}
std::vector<TypeId> types;