forked from mindspore-Ecosystem/mindspore
!47168 [MS][LITE][STABLE]fix IOS ARM32 compile fail
Merge pull request !47168 from chenjianping/r1.8_dev2
This commit is contained in:
commit
0799801072
|
@ -73,8 +73,8 @@ int ParallelThreadPoolManager::GetThreadPoolSize() {
|
|||
}
|
||||
|
||||
void ParallelThreadPoolManager::BindPoolToRunner(
|
||||
#ifndef MS_COMPILE_IOS
|
||||
ThreadPool *pool, const std::map<std::string, std::map<std::string, std::string>> *config_info) {
|
||||
#ifndef MS_COMPILE_IOS
|
||||
std::unique_lock<std::shared_mutex> l(pool_manager_mutex_);
|
||||
if (!enable_shared_thread_pool_ || config_info == nullptr) {
|
||||
THREAD_ERROR("not use parallel thread pool shared.");
|
||||
|
|
|
@ -530,7 +530,7 @@ int LiteSession::CompileGraph(Model *model) {
|
|||
return ret;
|
||||
}
|
||||
ret = lite::PackWeightManager::GetInstance()->StoreOriginTensorData(model, &tensors_);
|
||||
if (ret != RET_OK) {
|
||||
if (MS_UNLIKELY(ret != RET_OK)) {
|
||||
MS_LOG(ERROR) << "StoreOriginTensorData failed.";
|
||||
return RET_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue