Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Fixed the circular refernece between CPUStreamsExecutor and ExecuterManager (#33615)

liang58e66e888a27
diff --git a/src/inference/src/dev/threading/cpu_streams_executor.cpp b/src/inference/src/dev/threading/cpu_streams_executor.cpp
index 3149983552e..c4991bc2012 100644
--- a/src/inference/src/dev/threading/cpu_streams_executor.cpp
+++ b/src/inference/src/dev/threading/cpu_streams_executor.cpp
@@ -360,7 +360,6 @@ struct CPUStreamsExecutor::Impl {
return std::make_shared<Impl::Stream>(this);
},
this) {
- _exectorMgr = executor_manager();
auto numaNodes = get_available_numa_nodes();
int streams_num = _config.get_streams();
auto processor_ids = _config.get_stream_processor_ids();
@@ -478,7 +477,6 @@ struct CPUStreamsExecutor::Impl {
bool _isStopped = false;
std::vector<int> _usedNumaNodes;
CustomThreadLocal _streams;
- std::shared_ptr<ExecutorManager> _exectorMgr;
bool _isExit = false;
std::vector<int> _cpu_ids_all;
std::mutex _cpu_ids_mutex;