!18446 [LITE] fix log print
Merge pull request !18446 from yefeng/120-fix_log_print
This commit is contained in:
commit
27bfc6375b
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue