modify info-log to debug-info in running-time

This commit is contained in:
xuanyue 2022-09-22 21:18:07 +08:00
parent 4ff1e7a048
commit 4665c39bdd
3 changed files with 5 additions and 5 deletions

View File

@ -1078,7 +1078,7 @@ int LiteSession::ReSizeKernels(const std::vector<kernel::KernelExec *> &kernels,
}
}
if (ret == RET_INFER_INVALID) {
MS_LOG(INFO) << "InferShape is interrupted";
MS_LOG(DEBUG) << "InferShape is interrupted";
continue;
}
if (ret != RET_OK) {

View File

@ -114,9 +114,9 @@ int SubGraphKernel::ReSize() {
ret = lite::KernelInferShape(inputs, outputs, parameter, context_->allocator);
}
if (ret == RET_INFER_INVALID) {
MS_LOG(INFO) << "InferShape shouldn't be done before runtime, type:"
<< schema::EnumNamePrimitiveType(static_cast<schema::PrimitiveType>(kernel->type()))
<< "flag set to false.";
MS_LOG(DEBUG) << "InferShape shouldn't be done before runtime, type:"
<< schema::EnumNamePrimitiveType(static_cast<schema::PrimitiveType>(kernel->type()))
<< "flag set to false.";
} else if (ret != RET_OK) {
MS_LOG(ERROR) << "InferShape failed, type: "
<< schema::EnumNamePrimitiveType(static_cast<schema::PrimitiveType>(kernel->type()));

View File

@ -253,7 +253,7 @@ size_t Tensor::Size() const {
}
auto element_num = (format_ == mindspore::NC4HW4 || format_ == mindspore::NHWC4) ? ElementsC4Num() : ElementsNum();
if (element_num <= 0) {
MS_LOG(INFO) << "Element number of tensor should large than 0 : " << element_num << ", shape: " << shape_;
MS_LOG(DEBUG) << "Element number of tensor should large than 0 : " << element_num << ", shape: " << shape_;
return 0;
}
return element_size * static_cast<size_t>(element_num);