Public Member Functions | Static Public Member Functions
InferenceEngine::ExecutorManager Class Reference

This is global point for getting task executor objects by string id. It's necessary in multiple asynchronous requests for having unique executors to avoid oversubscription. E.g. There 2 task executors for CPU device: one - in FPGA, another - in MKLDNN. Parallel execution both of them leads to not optimal CPU usage. More efficient to run the corresponding tasks one by one via single executor. More...

#include <ie_executor_manager.hpp>

Public Member Functions

 ExecutorManager (ExecutorManager const &)=delete
 A deleted copy constructor.
 
void operator= (ExecutorManager const &)=delete
 A deleted assignment operator.
 
ITaskExecutor::Ptr getExecutor (std::string id)
 Returns executor by unique identificator. More...
 

Static Public Member Functions

static ExecutorManagergetInstance ()
 Returns a global instance of ExecutorManager. More...
 

Detailed Description

This is global point for getting task executor objects by string id. It's necessary in multiple asynchronous requests for having unique executors to avoid oversubscription. E.g. There 2 task executors for CPU device: one - in FPGA, another - in MKLDNN. Parallel execution both of them leads to not optimal CPU usage. More efficient to run the corresponding tasks one by one via single executor.

Member Function Documentation

◆ getExecutor()

ITaskExecutor::Ptr InferenceEngine::ExecutorManager::getExecutor ( std::string  id)

Returns executor by unique identificator.

Parameters
idAn unique identificator of device (Usually string representation of TargetDevice)
Returns
A shared pointer to existing or newly ITaskExecutor

◆ getInstance()

static ExecutorManager* InferenceEngine::ExecutorManager::getInstance ( )
static

Returns a global instance of ExecutorManager.

Returns
The instance.

The documentation for this class was generated from the following file: