Data Structures | Macros | Functions
Plugin base classes

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

Data Structures

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...
 

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 (FORCE_DISABLE_CACHE)
 This key should be used to force disable export while loading network even if global cache dir is defined Used by HETERO plugin to disable automatic caching of subnetworks (set value to YES)
 

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(void) CreatePluginEngine(::std::shared_ptr<::InferenceEngine::IInferencePlugin>& plugin) { \
try { \
plugin = ::std::make_shared<PluginType>(__VA_ARGS__); \
} catch (const InferenceEngine::Exception&) { \
throw; \
} catch (const std::exception& ex) { \
IE_THROW() << ex.what(); \
} catch (...) { \
IE_THROW(Unexpected); \
} \
plugin->SetVersion(version); \
}

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