From 2083a8e059de8ddfbf6d19bdd6ed398f2463c723 Mon Sep 17 00:00:00 2001 From: lichun Date: Wed, 19 May 2021 11:30:16 +0800 Subject: [PATCH] fwkacllib support inference when ge lib is not inited --- ge/hybrid/node_executor/aicore/aicore_task_compiler.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ge/hybrid/node_executor/aicore/aicore_task_compiler.h b/ge/hybrid/node_executor/aicore/aicore_task_compiler.h index cc733e99..4cb4dc58 100755 --- a/ge/hybrid/node_executor/aicore/aicore_task_compiler.h +++ b/ge/hybrid/node_executor/aicore/aicore_task_compiler.h @@ -18,7 +18,6 @@ #define GE_HYBRID_KERNEL_AICORE_TASK_COMPILER_H_ #include -#include #include "opskernel_manager/ops_kernel_manager.h" #include "aicore_node_executor.h" @@ -35,7 +34,7 @@ class AiCoreTaskCompiler : public TaskCompiler { Status DoCompileOp(const NodePtr &node) const; Status DoGenerateTask(const Node &node, std::vector &tasks); OpsKernelInfoStorePtr aic_kernel_store_; - std::atomic_bool is_initialized_{false}; + bool is_initialized_ = false; static std::mutex mu_; }; } // namespace hybrid