An API of plugin to be implemented by a plugin. More...
#include <ie_iplugin_internal.hpp>
Public Types | |
| using | Ptr = std::shared_ptr< IInferencePlugin > |
| A shared pointer to IInferencePlugin interface. | |
Public Member Functions | |
| void | SetVersion (const Version &version) |
| Sets a plugin version. More... | |
| const Version & | GetVersion () const |
| Gets a plugin version. More... | |
| virtual std::string | GetName () const noexcept |
| Provides a name of a plugin. More... | |
| virtual void | SetName (const std::string &name) noexcept |
| Sets a name for a plugin. More... | |
| virtual std::shared_ptr< IExecutableNetworkInternal > | LoadNetwork (const CNNNetwork &network, const std::map< std::string, std::string > &config) |
| Creates an executable network from an pares network object, users can create as many networks as they need and use them simultaneously (up to the limitation of the HW resources) More... | |
| virtual std::shared_ptr< IExecutableNetworkInternal > | LoadNetwork (const CNNNetwork &network, const std::map< std::string, std::string > &config, const std::shared_ptr< RemoteContext > &context) |
| Creates an executable network from network object, on specified remote context. More... | |
| virtual std::shared_ptr< IExecutableNetworkInternal > | LoadNetwork (const std::string &modelPath, const std::map< std::string, std::string > &config) |
| Creates an executable network from model file path. More... | |
| virtual void | AddExtension (const std::shared_ptr< IExtension > &extension) |
| Registers extension within plugin. More... | |
| virtual void | SetConfig (const std::map< std::string, std::string > &config) |
| Sets configuration for plugin, acceptable keys can be found in ie_plugin_config.hpp. More... | |
| virtual Parameter | GetConfig (const std::string &name, const std::map< std::string, Parameter > &options) const |
| Gets configuration dedicated to plugin behaviour. More... | |
| virtual Parameter | GetMetric (const std::string &name, const std::map< std::string, Parameter > &options) const |
| Gets general runtime metric for dedicated hardware. More... | |
| virtual std::shared_ptr< RemoteContext > | CreateContext (const ParamMap ¶ms) |
| Creates a remote context instance based on a map of parameters. More... | |
| virtual std::shared_ptr< RemoteContext > | GetDefaultContext (const ParamMap ¶ms) |
| Provides a default remote context instance if supported by a plugin. More... | |
| virtual std::shared_ptr< IExecutableNetworkInternal > | ImportNetwork (const std::string &modelFileName, const std::map< std::string, std::string > &config) |
| Creates an executable network from an previously exported network. More... | |
| virtual std::shared_ptr< IExecutableNetworkInternal > | ImportNetwork (std::istream &networkModel, const std::map< std::string, std::string > &config) |
| Creates an executable network from an previously exported network using plugin implementation and removes Inference Engine magic and plugin name. More... | |
| virtual std::shared_ptr< IExecutableNetworkInternal > | ImportNetwork (std::istream &networkModel, const std::shared_ptr< RemoteContext > &context, const std::map< std::string, std::string > &config) |
| Creates an executable network from an previously exported network using plugin implementation and removes Inference Engine magic and plugin name. More... | |
| virtual void | SetCore (ICore *core) |
| Sets pointer to ICore interface. More... | |
| virtual ICore * | GetCore () const noexcept |
| Gets reference to ICore interface. More... | |
| virtual QueryNetworkResult | QueryNetwork (const CNNNetwork &network, const std::map< std::string, std::string > &config) const |
| Queries a plugin about supported layers in network. More... | |
Protected Member Functions | |
| virtual std::shared_ptr< IExecutableNetworkInternal > | LoadExeNetworkImpl (const CNNNetwork &network, const std::map< std::string, std::string > &config) |
| Creates an executable network from a parsed network object, users can create as many networks as they need and use them simultaneously (up to the limitation of the HW resources) More... | |
| virtual std::shared_ptr< IExecutableNetworkInternal > | LoadExeNetworkImpl (const CNNNetwork &network, const std::shared_ptr< RemoteContext > &context, const std::map< std::string, std::string > &config) |
| Creates an executable network using remote context from a parsed network object, users can create as many networks as they need and use them simultaneously (up to the limitation of the HW resources) More... | |
| void | SetExeNetworkInfo (const std::shared_ptr< IExecutableNetworkInternal > &exeNetwork, const ConstInputsDataMap &inputs, const ConstOutputsDataMap &outputs) |
| Set input and output information to executable network. This method is used to set addtional information to InferenceEngine::IExecutableNetworkInternal create by device plugin. More... | |
Protected Attributes | |
| std::string | _pluginName |
| A device name that plugins enables. | |
| std::map< std::string, std::string > | _config |
| A map config keys -> values. | |
| ICore * | _core = nullptr |
| A pointer to ICore interface. | |
An API of plugin to be implemented by a plugin.
|
virtual |
Registers extension within plugin.
| extension | - pointer to already loaded extension |
|
virtual |
Creates a remote context instance based on a map of parameters.
| [in] | params | The map of parameters |
|
virtual |
Gets configuration dedicated to plugin behaviour.
| name | - value of config corresponding to config key |
| options | - configuration details for config |
|
virtualnoexcept |
|
virtual |
Provides a default remote context instance if supported by a plugin.
| [in] | params | The map of parameters |
|
virtual |
Gets general runtime metric for dedicated hardware.
| name | - metric name to request |
| options | - configuration details for metric |
|
virtualnoexcept |
Provides a name of a plugin.
| const Version& InferenceEngine::IInferencePlugin::GetVersion | ( | ) | const |
Gets a plugin version.
|
virtual |
Creates an executable network from an previously exported network.
| modelFileName | - path to the location of the exported file |
| config | A string -> string map of parameters |
|
virtual |
Creates an executable network from an previously exported network using plugin implementation and removes Inference Engine magic and plugin name.
| networkModel | Reference to network model output stream |
| config | A string -> string map of parameters |
|
virtual |
Creates an executable network from an previously exported network using plugin implementation and removes Inference Engine magic and plugin name.
| networkModel | Reference to network model output stream |
| context | A pointer to plugin context derived from RemoteContext class used to execute the network |
| config | A string -> string map of parameters |
|
protectedvirtual |
Creates an executable network from a parsed network object, users can create as many networks as they need and use them simultaneously (up to the limitation of the HW resources)
| network | A network object |
| config | string-string map of config parameters relevant only for this load operation |
|
protectedvirtual |
Creates an executable network using remote context from a parsed network object, users can create as many networks as they need and use them simultaneously (up to the limitation of the HW resources)
| network | A network object |
| context | A remote context |
| config | string-string map of config parameters relevant only for this load operation |
|
virtual |
Creates an executable network from an pares network object, users can create as many networks as they need and use them simultaneously (up to the limitation of the HW resources)
| network | A network object acquired from InferenceEngine::Core::ReadNetwork |
| config | A string-string map of config parameters relevant only for this load operation |
|
virtual |
Creates an executable network from network object, on specified remote context.
| network | A network object acquired from InferenceEngine::Core::ReadNetwork |
| config | string-string map of config parameters relevant only for this load operation |
| context | A pointer to plugin context derived from RemoteContext class used to execute the network |
|
virtual |
Creates an executable network from model file path.
| modelPath | A path to model |
| config | A string-string map of config parameters relevant only for this load operation |
|
virtual |
Queries a plugin about supported layers in network.
| [in] | network | The network object to query |
| [in] | config | The map of configuration parameters |
|
virtual |
Sets configuration for plugin, acceptable keys can be found in ie_plugin_config.hpp.
| config | string-string map of config parameters |
|
virtual |
|
protected |
Set input and output information to executable network. This method is used to set addtional information to InferenceEngine::IExecutableNetworkInternal create by device plugin.
| exeNetwork | An executable network object to set information to |
| inputs | An input information to set |
| outputs | An output information to set |
|
virtualnoexcept |
Sets a name for a plugin.
| [in] | name | The name |
| void InferenceEngine::IInferencePlugin::SetVersion | ( | const Version & | version | ) |
Sets a plugin version.
| version | A version to set |