54 : actual(actual), plg(plg) {
56 if (actual ==
nullptr) {
92 if (actual ==
nullptr) {
95 if (newActual ==
nullptr) {
98 this->actual.swap(newActual);
110 if (req.get() ==
nullptr)
THROW_IE_EXCEPTION <<
"Internal error: pointer to infer request is null";
123 return std::make_shared<InferRequest>(req, plg);
136 void Export(
const std::string& modelFileName) {
137 CALL_STATUS_FNC(
Export, modelFileName);
150 void Export(std::ostream& networkModel) {
151 CALL_STATUS_FNC(
Export, networkModel);
162 IE_SUPPRESS_DEPRECATED_START
163 INFERENCE_ENGINE_DEPRECATED(
"Use ExecutableNetwork::GetExecGraphInfo to get information about an internal graph")
167 IE_SUPPRESS_DEPRECATED_END
196 if (actual ==
nullptr) {
201 std::vector<MemoryState> controller;
202 for (
size_t idx = 0; res == OK; ++idx) {
204 res = actual->QueryState(pState, idx, &resp);
205 if (res != OK && res != OUT_OF_BOUNDS) {
208 if (res != OUT_OF_BOUNDS) {
222 void SetConfig(
const std::map<std::string, Parameter>& config) {
235 CALL_STATUS_FNC(
GetConfig, name, configValue);
248 CALL_STATUS_FNC(
GetMetric, name, metricValue);
266 using Ptr = std::shared_ptr<ExecutableNetwork>;
void SetConfig(const std::map< std::string, Parameter > &config)
Definition: ie_executable_network.hpp:222
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:25
RemoteContext::Ptr GetContext() const
Returns pointer to plugin-specific shared context on remote accelerator device that was used to creat...
Definition: ie_executable_network.hpp:257
Parameter GetConfig(const std::string &name) const
Definition: ie_executable_network.hpp:233
A header file that provides wrapper for ICNNNetwork object.
InferenceEngine::details::SOPointer< IInferencePlugin > InferenceEnginePluginPtr
A C++ helper to work with objects created by the plugin.
Definition: ie_plugin_ptr.hpp:43
std::vector< MemoryState > QueryState()
Definition: ie_executable_network.hpp:195
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
a header file for IExecutableNetwork interface
A header file that provides macros to handle no exception methods.
std::string name
Layer name.
Definition: ie_layers.h:42
A header file contains a wrapper class for handling plugin instantiation and releasing resources...
ExecutableNetwork(IExecutableNetwork::Ptr actual, InferenceEnginePluginPtr plg={})
Constructs ExecutableNetwork from the initialized shared_pointer.
Definition: ie_executable_network.hpp:53
InferRequest CreateInferRequest()
Definition: ie_executable_network.hpp:107
ConstOutputsDataMap GetOutputsInfo() const
Definition: ie_executable_network.hpp:67
Definition: ie_infer_request.hpp:64
std::shared_ptr< IMemoryState > Ptr
A shared pointer to the IMemoryState interface.
Definition: ie_imemory_state.hpp:29
std::shared_ptr< ICNNNetwork > Ptr
A shared pointer to a ICNNNetwork interface.
Definition: ie_icnn_network.hpp:48
std::shared_ptr< InferRequest > Ptr
A smart pointer to the InferRequest object.
Definition: ie_infer_request.hpp:282
ExecutableNetwork()=default
Default constructor.
Represents detailed information for an error.
Definition: ie_common.h:247
std::map< std::string, CDataPtr > ConstOutputsDataMap
A collection that contains string as key, and const Data smart pointer as value.
Definition: ie_iexecutable_network.hpp:31
char msg[4096]
A character buffer that holds the detailed information for an error.
Definition: ie_common.h:251
wrapper over IExecutableNetwork
Definition: ie_executable_network.hpp:30
void GetMappedTopology(std::map< std::string, std::vector< PrimitiveInfo::Ptr >> &deployedTopology)
Definition: ie_executable_network.hpp:164
CNNNetwork GetExecGraphInfo()
Definition: ie_executable_network.hpp:183
void Export(std::ostream &networkModel)
Definition: ie_executable_network.hpp:150
This class contains all the information about the Neural Network and the related binary information...
Definition: ie_cnn_network.h:38
~ExecutableNetwork()
Destructor.
Definition: ie_executable_network.hpp:43
C++ exception based error reporting wrapper of API class IMemoryState.
Definition: ie_memory_state.hpp:17
void Export(const std::string &modelFileName)
Definition: ie_executable_network.hpp:136
ConstInputsDataMap GetInputsInfo() const
Definition: ie_executable_network.hpp:79
This class represents an object to work with different parameters.
Definition: ie_parameter.hpp:37
Parameter GetMetric(const std::string &name) const
Definition: ie_executable_network.hpp:246
std::map< std::string, InputInfo::CPtr > ConstInputsDataMap
A collection that contains string as key, and const InputInfo smart pointer as value.
Definition: ie_input_info.hpp:165
std::shared_ptr< IExecutableNetwork > Ptr
A smart pointer to the current IExecutableNetwork object.
Definition: ie_iexecutable_network.hpp:41
std::shared_ptr< RemoteContext > Ptr
A smart pointer to the RemoteContext object.
Definition: ie_remote_context.hpp:99
A header file that provides wrapper classes for infer requests and callbacks.
std::shared_ptr< ExecutableNetwork > Ptr
A smart pointer to the ExecutableNetwork object.
Definition: ie_executable_network.hpp:266
void reset(IExecutableNetwork::Ptr newActual)
reset owned object to new pointer.
Definition: ie_executable_network.hpp:91
Structure with information about Primitive.
Definition: ie_primitive_info.hpp:27
std::shared_ptr< IInferRequest > Ptr
A shared pointer to the IInferRequest object.
Definition: ie_iinfer_request.hpp:44
InferRequest::Ptr CreateInferRequestPtr()
Definition: ie_executable_network.hpp:120