Data Structures | Macros | Typedefs | Functions | Variables
Plugin base classes

A set of base and helper classes to implement a plugin class. More...

Data Structures

class  InferenceEngine::InferencePluginInternal
 Optimal implementation of IInferencePlugin interface to avoid duplication in all plugins. More...
 
interface  InferenceEngine::IInferencePlugin
 An API of plugin to be implemented by a plugin. More...
 
interface  InferenceEngine::ICore
 Minimal ICore interface to allow plugin to get information from Core Inference Engine class. More...
 

Macros

#define CONFIG_KEY_INTERNAL(name)   ::InferenceEngine::PluginConfigInternalParams::_CONFIG_KEY(name)
 Shortcut for defining internal configuration keys.
 
#define IE_DEFINE_PLUGIN_CREATE_FUNCTION(PluginType, version, ...)
 Defines the exported CreatePluginEngine function which is used to create a plugin instance. More...
 

Typedefs

using InferenceEngine::ExportMagic = std::array< char, 4 >
 Type of magic value.
 

Functions

 InferenceEngine::PluginConfigInternalParams::DECLARE_CONFIG_KEY (LP_TRANSFORMS_MODE)
 Defines a low precision mode key.
 
 InferenceEngine::PluginConfigInternalParams::DECLARE_CONFIG_KEY (CPU_THREADS_PER_STREAM)
 Limit #threads that are used by CPU Executor Streams to execute parallel_for calls.
 
 InferenceEngine::PluginConfigInternalParams::DECLARE_CONFIG_KEY (AGGREGATED_PLUGIN)
 This key should be used to notify aggregating plugin that it is used inside other aggregating plugin.
 

Variables

constexpr static const ExportMagic InferenceEngine::exportMagic = {{0x1, 0xE, 0xE, 0x1}}
 Magic number used by ie core to identify exported network with plugin name.
 

Detailed Description

A set of base and helper classes to implement a plugin class.

Macro Definition Documentation

◆ IE_DEFINE_PLUGIN_CREATE_FUNCTION

#define IE_DEFINE_PLUGIN_CREATE_FUNCTION (   PluginType,
  version,
  ... 
)
Value:
INFERENCE_PLUGIN_API(InferenceEngine::StatusCode) CreatePluginEngine( \
InferenceEngine::ResponseDesc *resp) noexcept { \
try { \
plugin = new PluginType(__VA_ARGS__); \
plugin->SetVersion(version); \
return InferenceEngine::OK; \
} \
catch (std::exception &ex) { \
return InferenceEngine::DescriptionBuffer(InferenceEngine::GENERAL_ERROR, resp) << ex.what(); \
} \
}
An API of plugin to be implemented by a plugin.
Definition: ie_iplugin_internal.hpp:87
A description buffer wrapping StatusCode and ResponseDesc.
Definition: description_buffer.hpp:24

Defines the exported CreatePluginEngine function which is used to create a plugin instance.