31 IE_SUPPRESS_DEPRECATED_START
44 if (actual ==
nullptr) {
49 IE_SUPPRESS_DEPRECATED_END
58 const Version* versionInfo =
nullptr;
59 IE_SUPPRESS_DEPRECATED_START
60 if (actual ==
nullptr)
THROW_IE_EXCEPTION <<
"InferencePlugin wrapper was not initialized";
61 actual->GetVersion(versionInfo);
62 IE_SUPPRESS_DEPRECATED_END
63 if (versionInfo ==
nullptr) {
80 IE_SUPPRESS_DEPRECATED_START
81 CALL_STATUS_FNC(LoadNetwork, ret, network, config);
83 IE_SUPPRESS_DEPRECATED_END
96 IE_SUPPRESS_DEPRECATED_START
97 CALL_STATUS_FNC(LoadNetwork, ret, network, config);
98 if (ret.get() ==
nullptr)
THROW_IE_EXCEPTION <<
"Internal error: pointer to executable network is null";
100 IE_SUPPRESS_DEPRECATED_END
111 IE_SUPPRESS_DEPRECATED_START
112 CALL_STATUS_FNC(AddExtension, extension);
113 IE_SUPPRESS_DEPRECATED_END
122 void SetConfig(
const std::map<std::string, std::string>& config) {
123 IE_SUPPRESS_DEPRECATED_START
124 CALL_STATUS_FNC(SetConfig, config);
125 IE_SUPPRESS_DEPRECATED_END
137 const std::map<std::string, std::string>& config) {
139 IE_SUPPRESS_DEPRECATED_START
140 CALL_STATUS_FNC(ImportNetwork, ret, modelFileName, config);
142 IE_SUPPRESS_DEPRECATED_END
156 IE_SUPPRESS_DEPRECATED_START
157 if (actual ==
nullptr)
THROW_IE_EXCEPTION <<
"InferencePlugin wrapper was not initialized";
158 actual->QueryNetwork(network, config, res);
159 IE_SUPPRESS_DEPRECATED_END
163 IE_SUPPRESS_DEPRECATED_START
178 using Ptr = std::shared_ptr<InferencePlugin>;
180 IE_SUPPRESS_DEPRECATED_END
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:25
InferenceEngine::details::SOPointer< IInferencePlugin > InferenceEnginePluginPtr
A C++ helper to work with objects created by the plugin.
Definition: ie_plugin_ptr.hpp:43
A header file that provides wrapper classes for IExecutableNetwork.
A header file that provides wrapper for ICNNNetwork object.
This class represents Inference Engine Core entity.
Definition: ie_core.hpp:51
ExecutableNetwork LoadNetwork(CNNNetwork network, const std::map< std::string, std::string > &config)
Definition: ie_plugin_cpp.hpp:94
ExecutableNetwork LoadNetwork(const ICNNNetwork &network, const std::map< std::string, std::string > &config)
Definition: ie_plugin_cpp.hpp:78
Definition: cldnn_config.hpp:16
Represents version information that describes plugins and the inference engine runtime library...
Definition: ie_version.hpp:21
This class is a C++ API wrapper for IInferencePlugin.
Definition: ie_plugin_cpp.hpp:30
A header file for Main Inference Engine API.
A header file that provides macros to handle no exception methods.
ResponseDesc resp
Response message.
Definition: ie_core.hpp:43
A header file contains a wrapper class for handling plugin instantiation and releasing resources...
char msg[4096]
A character buffer that holds the detailed information for an error.
Definition: ie_common.h:251
void AddExtension(InferenceEngine::IExtensionPtr extension)
Definition: ie_plugin_cpp.hpp:110
This is the main interface to describe the NN topology.
Definition: ie_icnn_network.hpp:43
wrapper over IExecutableNetwork
Definition: ie_executable_network.hpp:30
std::shared_ptr< InferencePlugin > Ptr
Shared pointer on InferencePlugin object.
Definition: ie_plugin_cpp.hpp:178
This class contains all the information about the Neural Network and the related binary information...
Definition: ie_cnn_network.h:38
StatusCode rc
A status code.
Definition: ie_core.hpp:38
const Version * GetVersion()
Definition: ie_plugin_cpp.hpp:57
void SetConfig(const std::map< std::string, std::string > &config)
Definition: ie_plugin_cpp.hpp:122
std::shared_ptr< IExtension > IExtensionPtr
A shared pointer to a IExtension interface.
Definition: ie_iextension.h:359
void QueryNetwork(const ICNNNetwork &network, const std::map< std::string, std::string > &config, QueryNetworkResult &res) const
Definition: ie_plugin_cpp.hpp:154
std::shared_ptr< IExecutableNetwork > Ptr
A smart pointer to the current IExecutableNetwork object.
Definition: ie_iexecutable_network.hpp:41
Responce structure encapsulating information about supported layer.
Definition: ie_core.hpp:27
ExecutableNetwork ImportNetwork(const std::string &modelFileName, const std::map< std::string, std::string > &config)
Definition: ie_plugin_cpp.hpp:136
InferencePlugin(const InferenceEnginePluginPtr &pointer)
Constructs a plugin instance from the given pointer.
Definition: ie_plugin_cpp.hpp:43