forked from mindspore-Ecosystem/mindspore
!26305 [MSLITE] runtime convert log bug
Merge pull request !26305 from ling/pr
This commit is contained in:
commit
04545fa624
|
@ -48,6 +48,11 @@
|
||||||
#endif
|
#endif
|
||||||
#include "src/runtime/runtime_convert.h"
|
#include "src/runtime/runtime_convert.h"
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
#ifdef USE_GLOG
|
||||||
|
extern "C" {
|
||||||
|
extern void common_log_init();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
namespace lite {
|
namespace lite {
|
||||||
namespace {
|
namespace {
|
||||||
bool NeedBitUppackCheck(const SchemaTensorWrapper &src_tensor) {
|
bool NeedBitUppackCheck(const SchemaTensorWrapper &src_tensor) {
|
||||||
|
@ -97,7 +102,12 @@ int DecompressTensor(const SchemaTensorWrapper &src_tensor, Tensor *dst_tensor)
|
||||||
}
|
}
|
||||||
} // namespace
|
} // 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) {
|
void LiteSession::ConvertTensorsQuantParam(const schema::Tensor *src_tensor, lite::Tensor *dst_tensor) {
|
||||||
MS_ASSERT(src_tensor != nullptr);
|
MS_ASSERT(src_tensor != nullptr);
|
||||||
|
|
Loading…
Reference in New Issue