!47168 [MS][LITE][STABLE]fix IOS ARM32 compile fail

Merge pull request !47168 from chenjianping/r1.8_dev2
This commit is contained in:
i-robot 2022-12-24 10:15:36 +00:00 committed by Gitee
commit 0799801072
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -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.");

View File

@ -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;
}