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< ITaskExecutor > | GetTaskExecutor () 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 SoExecutableNetworkInternal | 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 SoExecutableNetworkInternal | LoadNetwork (const std::string &modelPath, const std::string &deviceName, const std::map< std::string, std::string > &config)=0 |
| Creates an executable network from a model file. More... | |
| virtual SoExecutableNetworkInternal | 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 std::vector< std::string > | GetAvailableDevices () const =0 |
| Returns devices available for neural networks inference. More... | |
| virtual bool | DeviceSupportsImportExport (const std::string &deviceName) const =0 |
| Checks whether device supports Export & Import functionality of network. More... | |
| virtual | ~ICore ()=default |
| Default virtual destructor. | |
|
pure virtual |
Checks whether device supports Export & Import functionality of network.
| deviceName | - A name of a device to get a metric value. |
|
pure virtual |
Returns devices available for neural networks inference.
|
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.
| deviceName | - A name of a device to get a metric value. |
| name | - metric name to request. |
|
pure virtual |
Returns global to Inference Engine class task executor.
|
pure virtual |
Creates an executable network from a previously exported network.
| networkModel | network model stream |
| deviceName | Name of device load executable network on |
| config | Optional map of pairs: (config parameter name, config parameter value) relevant only for this load operation* |
|
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)
| network | CNNNetwork object acquired from Core::ReadNetwork |
| deviceName | Name of device to load network to |
| config | Optional map of pairs: (config parameter name, config parameter value) relevant only for this load operation |
|
pure virtual |
Creates an executable network from a model file.
Users can create as many networks as they need and use them simultaneously (up to the limitation of the hardware resources)
| modelPath | Path to model |
| deviceName | Name of device to load network to |
| config | Optional map of pairs: (config parameter name, config parameter value) relevant only for this load operation |
|
pure virtual |
Query device if it supports specified network with specified configuration.
| deviceName | A name of a device to query |
| network | Network object to query |
| config | Optional map of pairs: (config parameter name, config parameter value) |
|
pure virtual |
Reads IR xml and bin (with the same name) files.
| model | string with IR |
| weights | shared pointer to constant blob with weights |
|
pure virtual |
Reads IR xml and bin files.
| modelPath | path to IR file |
| binPath | path 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. |