#include <ie_ihetero_plugin.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IHeteroDeviceLoader > |
Public Member Functions | |
virtual StatusCode | LoadNetwork (const std::string &device, IExecutableNetwork::Ptr &ret, ICNNNetwork &network, const std::map< std::string, std::string > &config, ResponseDesc *resp) noexcept=0 |
virtual void | QueryNetwork (const std::string &device, const ICNNNetwork &network, QueryNetworkResult &res) noexcept=0 |
virtual void | QueryNetwork (const std::string &device, const ICNNNetwork &network, const std::map< std::string, std::string > &, QueryNetworkResult &res) noexcept |
virtual void | SetLogCallback (IErrorListener &listener)=0 |
This interface describes a mechanism of custom loaders to be used in heterogeneous plugin during setting of affinity and loading of split sub-network to the plugins The custom loader can define addition settings for the plugins or network loading Examples of cases when this interface should be implemented in the application:
|
pure virtualnoexcept |
Loads network to the device. The instantiation of plugin should be in the implementation of the IHeteroDeviceLoader. As well setting of special config option should happen in the implementation as well
device | Loading of network should happen for this device |
ret | Reference to a shared ptr of the returned executable network instance |
network | Network object acquired from CNNNetReader |
config | Map of configuration settings relevant only for current load operation |
resp | Pointer to the response message that holds a description of an error if any occurred |
|
pure virtualnoexcept |
Use the version with config parameter This function calls plugin function QueryNetwork for the plugin being instantiated in the implementation of IHeteroDeviceLoader
device | QueryNetwork will be executed for this device |
network | Network object acquired from CNNNetReader |
res |
|
inlinevirtualnoexcept |
This function calls plugin function QueryNetwork for the plugin being instantiated in the implementation of IHeteroDeviceLoader
device | QueryNetwork will be executed for this device |
network | Network object acquired from CNNNetReader |
config | Network configuration parameters |
res |