This class is a main plugin interface.
More...
#include <ie_plugin.hpp>
|
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, const 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.
|
|
This class is a main plugin interface.
- Deprecated:
- Use InferenceEngine::Core instead. Will be removed in 2021.1
§ AddExtension()
Registers extension within the plugin.
- Parameters
-
extension | Pointer to already loaded extension |
resp | Pointer to the response message that holds a description of an error if any occurred |
- Returns
- Status code of the operation. InferenceEngine::OK if succeeded
§ GetVersion()
virtual void InferenceEngine::IInferencePlugin::GetVersion |
( |
const Version *& |
versionInfo | ) |
|
|
pure virtualnoexcept |
Returns plugin version information.
- Parameters
-
versionInfo | Pointer to version info. Is set by plugin |
§ ImportNetwork()
Creates an executable network from a previously exported network.
- Parameters
-
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 |
- Returns
- Status code of the operation. InferenceEngine::OK if succeeded
§ LoadNetwork()
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)
- Parameters
-
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 |
- Returns
- Status code of the operation. InferenceEngine::OK if succeeded
§ QueryNetwork()
virtual void InferenceEngine::IInferencePlugin::QueryNetwork |
( |
const ICNNNetwork & |
network, |
|
|
const std::map< std::string, std::string > & |
config, |
|
|
QueryNetworkResult & |
res |
|
) |
| const |
|
inlinevirtualnoexcept |
Query plugin if it supports specified network with specified configuration.
- Parameters
-
network | Network object to query |
config | Map of pairs: (config parameter name, config parameter value) |
res | Reference to query network result |
§ SetConfig()
virtual StatusCode InferenceEngine::IInferencePlugin::SetConfig |
( |
const std::map< std::string, std::string > & |
config, |
|
|
ResponseDesc * |
resp |
|
) |
| |
|
pure virtualnoexcept |
Sets configuration for plugin, acceptable keys can be found in ie_plugin_config.hpp.
- Parameters
-
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 |
- Returns
- Status code of the operation. InferenceEngine::OK if succeeded
§ SetLogCallback()
virtual void InferenceEngine::IInferencePlugin::SetLogCallback |
( |
IErrorListener & |
listener | ) |
|
|
pure virtualnoexcept |
Sets logging callback.
- Deprecated:
- IErrorListener is not used anymore. StatusCode is provided in case of unexpected situations This API will be removed in 2021.1 release.
Logging is used to track what is going on inside
- Parameters
-
The documentation for this class was generated from the following file: