Public Member Functions
InferenceEngine::ICore Interface Referenceabstract

Minimal ICore interface to allow plugin to get information from Core Inference Engine class. More...

#include <ie_icore.hpp>

Public Member Functions

virtual std::shared_ptr< ITaskExecutorGetTaskExecutor () const =0
 Returns global to Inference Engine class task executor. More...
 
virtual CNNNetwork ReadNetwork (const std::string &model, const Blob::CPtr &weights) const =0
 Reads IR xml and bin (with the same name) files. More...
 
virtual CNNNetwork ReadNetwork (const std::string &modelPath, const std::string &binPath) const =0
 Reads IR xml and bin files. More...
 
virtual ExecutableNetwork LoadNetwork (const CNNNetwork &network, const std::string &deviceName, const std::map< std::string, std::string > &config={})=0
 Creates an executable network from a network object. More...
 
virtual ExecutableNetwork ImportNetwork (std::istream &networkModel, const std::string &deviceName={}, const std::map< std::string, std::string > &config={})=0
 Creates an executable network from a previously exported network. More...
 
virtual QueryNetworkResult QueryNetwork (const CNNNetwork &network, const std::string &deviceName, const std::map< std::string, std::string > &config) const =0
 Query device if it supports specified network with specified configuration. More...
 
virtual Parameter GetMetric (const std::string &deviceName, const std::string &name) const =0
 Gets general runtime metric for dedicated hardware. More...
 
virtual ~ICore ()=default
 Default virtual destructor.
 

Detailed Description

Minimal ICore interface to allow plugin to get information from Core Inference Engine class.

Member Function Documentation

◆ GetMetric()

virtual Parameter InferenceEngine::ICore::GetMetric ( const std::string &  deviceName,
const std::string &  name 
) const
pure virtual

Gets general runtime metric for dedicated hardware.

The method is needed to request common device properties which are executable network agnostic. It can be device name, temperature, other devices-specific values.

Parameters
deviceName- A name of a device to get a metric value.
name- metric name to request.
Returns
Metric value corresponding to metric key.

◆ GetTaskExecutor()

virtual std::shared_ptr<ITaskExecutor> InferenceEngine::ICore::GetTaskExecutor ( ) const
pure virtual

Returns global to Inference Engine class task executor.

Returns
Reference to task executor

◆ ImportNetwork()

virtual ExecutableNetwork InferenceEngine::ICore::ImportNetwork ( std::istream &  networkModel,
const std::string &  deviceName = {},
const std::map< std::string, std::string > &  config = {} 
)
pure virtual

Creates an executable network from a previously exported network.

Parameters
deviceNameName of device load executable network on
networkModelnetwork model stream
configOptional map of pairs: (config parameter name, config parameter value) relevant only for this load operation*
Returns
An executable network reference

◆ LoadNetwork()

virtual ExecutableNetwork InferenceEngine::ICore::LoadNetwork ( const CNNNetwork network,
const std::string &  deviceName,
const std::map< std::string, std::string > &  config = {} 
)
pure virtual

Creates an executable network from a network object.

Users can create as many networks as they need and use them simultaneously (up to the limitation of the hardware resources)

Parameters
networkCNNNetwork object acquired from Core::ReadNetwork
deviceNameName of device to load network to
configOptional map of pairs: (config parameter name, config parameter value) relevant only for this load operation
Returns
An executable network reference

◆ QueryNetwork()

virtual QueryNetworkResult InferenceEngine::ICore::QueryNetwork ( const CNNNetwork network,
const std::string &  deviceName,
const std::map< std::string, std::string > &  config 
) const
pure virtual

Query device if it supports specified network with specified configuration.

Parameters
deviceNameA name of a device to query
networkNetwork object to query
configOptional map of pairs: (config parameter name, config parameter value)
Returns
An object containing a map of pairs a layer name -> a device name supporting this layer.

◆ ReadNetwork() [1/2]

virtual CNNNetwork InferenceEngine::ICore::ReadNetwork ( const std::string &  model,
const Blob::CPtr weights 
) const
pure virtual

Reads IR xml and bin (with the same name) files.

Parameters
modelstring with IR
weightsshared pointer to constant blob with weights
Returns
CNNNetwork

◆ ReadNetwork() [2/2]

virtual CNNNetwork InferenceEngine::ICore::ReadNetwork ( const std::string &  modelPath,
const std::string &  binPath 
) const
pure virtual

Reads IR xml and bin files.

Parameters
modelPathpath to IR file
binPathpath to bin file, if path is empty, will try to read bin file with the same name as xml and if bin file with the same name was not found, will load IR without weights.
Returns
CNNNetwork

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