This class is a C++ API wrapper for IInferencePlugin. More...
#include <ie_plugin_cpp.hpp>
Public Types | |
using | Ptr = std::shared_ptr< InferencePlugin > |
Shared pointer on InferencePlugin object. | |
Public Member Functions | |
InferencePlugin ()=default | |
A default constructor. | |
InferencePlugin (const InferenceEnginePluginPtr &pointer) | |
Constructs a plugin instance from the given pointer. More... | |
const Version * | GetVersion () |
ExecutableNetwork | LoadNetwork (ICNNNetwork &network, const std::map< std::string, std::string > &config) |
ExecutableNetwork | LoadNetwork (CNNNetwork network, const std::map< std::string, std::string > &config) |
void | AddExtension (InferenceEngine::IExtensionPtr extension) |
void | SetConfig (const std::map< std::string, std::string > &config) |
ExecutableNetwork | ImportNetwork (const std::string &modelFileName, const std::map< std::string, std::string > &config) |
void | QueryNetwork (const ICNNNetwork &network, const std::map< std::string, std::string > &config, QueryNetworkResult &res) const |
operator InferenceEngine::InferenceEnginePluginPtr () | |
Converts InferenceEngine to InferenceEnginePluginPtr pointer. More... | |
virtual void | GetVersion (const Version *&versionInfo) noexcept=0 |
Returns plugin version information. More... | |
virtual void | SetLogCallback (IErrorListener &listener) noexcept=0 |
Sets logging callback. More... | |
virtual StatusCode | LoadNetwork (IExecutableNetwork::Ptr &ret, ICNNNetwork &network, const std::map< std::string, std::string > &config, ResponseDesc *resp) noexcept=0 |
Creates an executable network from a network object. User can create as many networks as they need and use them simultaneously (up to the limitation of the hardware resources) More... | |
virtual StatusCode | ImportNetwork (IExecutableNetwork::Ptr &ret, const std::string &modelFileName, const std::map< std::string, std::string > &config, ResponseDesc *resp) noexcept=0 |
Creates an executable network from a previously exported network. More... | |
virtual StatusCode | AddExtension (InferenceEngine::IExtensionPtr extension, InferenceEngine::ResponseDesc *resp) noexcept=0 |
Registers extension within the plugin. More... | |
virtual StatusCode | SetConfig (const std::map< std::string, std::string > &config, ResponseDesc *resp) noexcept=0 |
Sets configuration for plugin, acceptable keys can be found in ie_plugin_config.hpp. More... | |
virtual void | QueryNetwork (const ICNNNetwork &network, const std::map< std::string, std::string > &config, QueryNetworkResult &res) const noexcept |
Query plugin if it supports specified network with specified configuration. More... | |
~IInferencePlugin () override | |
A default virtual destructor. | |
PluginDispatcher (const std::vector< file_name_t > &pp={file_name_t()}) | |
A constructor. More... | |
virtual InferencePlugin | getPluginByName (const file_name_t &name) const |
Loads a plugin from plugin directories. More... | |
InferencePlugin | getPluginByDevice (const std::string &deviceName) const |
Loads a plugin from directories that is suitable for the device string. More... | |
Protected Member Functions | |
file_name_t | make_plugin_name (const file_name_t &path, const file_name_t &input) const |
Creates path to the plugin. More... | |
This class is a C++ API wrapper for IInferencePlugin.
This is a class to load a suitable plugin.
This class is a main plugin interface.
It can throw exceptions safely for the application, where it is properly handled.
|
inline |
Wraps IInferencePlugin::AddExtension
extension | Pointer to loaded Extension |
|
pure virtualnoexcept |
Registers extension within the plugin.
extension | Pointer to already loaded extension |
resp | Pointer to the response message that holds a description of an error if any occurred |
InferencePlugin InferenceEngine::InferenceEngine::getPluginByDevice | ( | const std::string & | deviceName | ) | const |
Loads a plugin from directories that is suitable for the device string.
deviceName | A string value representing target device |
|
virtual |
Loads a plugin from plugin directories.
name | Plugin name |
|
inline |
Wraps IInferencePlugin::GetVersion
|
pure virtualnoexcept |
Returns plugin version information.
versionInfo | Pointer to version info. Is set by plugin |
|
pure virtualnoexcept |
Creates an executable network from a previously exported network.
ret | Reference to a shared ptr of the returned network interface |
modelFileName | Path to the location of the exported file |
config | Map of pairs: (config parameter name, config parameter value) relevant only for this load operation* |
resp | Pointer to the response message that holds a description of an error if any occurred |
|
inline |
Wraps IInferencePlugin::ImportNetwork
modelFileName | A path to the imported network |
config | A configuration map |
|
inlineexplicit |
Constructs a plugin instance from the given pointer.
pointer | Initialized Plugin pointer |
|
inline |
Wraps IInferencePlugin::LoadNetwork(IExecutableNetwork::Ptr&, ICNNNetwork&, const std::map<std::string, std::string> &, ResponseDesc*)
network | A network object to load |
config | A map of configuration options |
|
inline |
Wraps IInferencePlugin::LoadNetwork(IExecutableNetwork::Ptr&, ICNNNetwork&, const std::map<std::string, std::string> &, ResponseDesc*)
network | A network object to load |
config | A map of configuration options |
|
pure virtualnoexcept |
Creates an executable network from a network object. User can create as many networks as they need and use them simultaneously (up to the limitation of the hardware resources)
ret | Reference to a shared ptr of the returned network interface |
network | Network object acquired from CNNNetReader |
config | Map of pairs: (config parameter name, config parameter value) relevant only for this load operation |
resp | Pointer to the response message that holds a description of an error if any occurred |
|
protected |
Creates path to the plugin.
path | Path to the plugin |
input | Plugin name |
|
inline |
Converts InferenceEngine to InferenceEnginePluginPtr pointer.
|
explicit |
A constructor.
pp | Vector of paths to plugin directories |
|
inlinevirtualnoexcept |
Query plugin if it supports specified network with specified configuration.
network | Network object to query |
config | Map of pairs: (config parameter name, config parameter value) |
res | Reference to query network result |
|
inline |
Wraps IInferencePlugin::QueryNetwork(const ICNNNetwork&, const std::map<std::string, std::string> &, QueryNetworkResult&) const
network | A network object to query |
config | A configuration map |
res | Query results |
|
inline |
Wraps IInferencePlugin::SetConfig
config | A configuration map |
|
pure virtualnoexcept |
Sets configuration for plugin, acceptable keys can be found in ie_plugin_config.hpp.
config | Map of pairs: (config parameter name, config parameter value) |
resp | Pointer to the response message that holds a description of an error if any occurred |
|
pure virtualnoexcept |
Sets logging callback.
Logging is used to track what is going on inside
listener | Logging sink |