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 ExecutorManager * | getInstance () |
Returns a global instance of ExecutorManager. More... | |
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.
ITaskExecutor::Ptr InferenceEngine::ExecutorManager::getExecutor | ( | std::string | id | ) |
Returns executor by unique identificator.
id | An unique identificator of device (Usually string representation of TargetDevice) |
|
static |
Returns a global instance of ExecutorManager.