!26305 [MSLITE] runtime convert log bug

Merge pull request !26305 from ling/pr
This commit is contained in:
i-robot 2021-11-16 01:58:30 +00:00 committed by Gitee
commit 04545fa624
1 changed files with 11 additions and 1 deletions

View File

@ -48,6 +48,11 @@
#endif
#include "src/runtime/runtime_convert.h"
namespace mindspore {
#ifdef USE_GLOG
extern "C" {
extern void common_log_init();
}
#endif
namespace lite {
namespace {
bool NeedBitUppackCheck(const SchemaTensorWrapper &src_tensor) {
@ -97,7 +102,12 @@ int DecompressTensor(const SchemaTensorWrapper &src_tensor, Tensor *dst_tensor)
}
} // namespace
LiteSession::LiteSession() { this->is_running_.store(false); }
LiteSession::LiteSession() {
#ifdef USE_GLOG
mindspore::common_log_init();
#endif
this->is_running_.store(false);
}
void LiteSession::ConvertTensorsQuantParam(const schema::Tensor *src_tensor, lite::Tensor *dst_tensor) {
MS_ASSERT(src_tensor != nullptr);