25 namespace InferenceEngine {
32 details::SharedObjectLoader::Ptr plg;
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);
135 void Export(
const std::string& modelFileName) {
136 CALL_STATUS_FNC(
Export, modelFileName);
148 void Export(std::ostream& networkModel) {
149 CALL_STATUS_FNC(
Export, networkModel);
178 INFERENCE_ENGINE_DEPRECATED(
"Use InferRequest::QueryState instead")
180 IE_SUPPRESS_DEPRECATED_START
181 if (actual ==
nullptr)
THROW_IE_EXCEPTION <<
"ExecutableNetwork was not initialized.";
184 std::vector<VariableState> controller;
185 for (
size_t idx = 0; res == OK; ++idx) {
187 res = actual->QueryState(pState, idx, &resp);
188 if (res != OK && res != OUT_OF_BOUNDS) {
191 if (res != OUT_OF_BOUNDS) {
196 IE_SUPPRESS_DEPRECATED_END
206 void SetConfig(
const std::map<std::string, Parameter>& config) {
219 CALL_STATUS_FNC(
GetConfig, name, configValue);
232 CALL_STATUS_FNC(
GetMetric, name, metricValue);
250 using Ptr = std::shared_ptr<ExecutableNetwork>;
This class contains all the information about the Neural Network and the related binary information.
Definition: ie_cnn_network.h:36
wrapper over IExecutableNetwork
Definition: ie_executable_network.hpp:30
CNNNetwork GetExecGraphInfo()
Get executable graph information from a device.
Definition: ie_executable_network.hpp:166
ConstOutputsDataMap GetOutputsInfo() const
Gets the Executable network output Data node information.
Definition: ie_executable_network.hpp:67
ExecutableNetwork(IExecutableNetwork::Ptr actual, details::SharedObjectLoader::Ptr plg={})
Constructs ExecutableNetwork from the initialized shared_pointer.
Definition: ie_executable_network.hpp:53
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:241
InferRequest CreateInferRequest()
Creates an inference request object used to infer the network.
Definition: ie_executable_network.hpp:107
Parameter GetMetric(const std::string &name) const
Gets general runtime metric for an executable network.
Definition: ie_executable_network.hpp:230
InferRequest::Ptr CreateInferRequestPtr()
Creates an inference request object used to infer the network.
Definition: ie_executable_network.hpp:120
void reset(IExecutableNetwork::Ptr newActual)
reset owned object to new pointer.
Definition: ie_executable_network.hpp:91
ConstInputsDataMap GetInputsInfo() const
Gets the executable network input Data node information.
Definition: ie_executable_network.hpp:79
ExecutableNetwork()=default
Default constructor.
void SetConfig(const std::map< std::string, Parameter > &config)
Sets configuration for current executable network.
Definition: ie_executable_network.hpp:206
std::vector< VariableState > QueryState()
Gets state control interface for given executable network.
Definition: ie_executable_network.hpp:179
void Export(const std::string &modelFileName)
Exports the current executable network.
Definition: ie_executable_network.hpp:135
~ExecutableNetwork()
Destructor.
Definition: ie_executable_network.hpp:43
std::shared_ptr< ExecutableNetwork > Ptr
A smart pointer to the ExecutableNetwork object.
Definition: ie_executable_network.hpp:250
Parameter GetConfig(const std::string &name) const
Gets configuration for current executable network.
Definition: ie_executable_network.hpp:217
void Export(std::ostream &networkModel)
Exports the current executable network.
Definition: ie_executable_network.hpp:148
std::shared_ptr< ICNNNetwork > Ptr
A shared pointer to a ICNNNetwork interface.
Definition: ie_icnn_network.hpp:44
std::shared_ptr< IExecutableNetwork > Ptr
A smart pointer to the current IExecutableNetwork object.
Definition: ie_iexecutable_network.hpp:40
std::shared_ptr< IInferRequest > Ptr
A shared pointer to the IInferRequest object.
Definition: ie_iinfer_request.hpp:44
std::shared_ptr< IVariableState > Ptr
A shared pointer to the IVariableState interface.
Definition: ie_imemory_state.hpp:30
This is an interface of asynchronous infer request.
Definition: ie_infer_request.hpp:65
std::shared_ptr< InferRequest > Ptr
A smart pointer to the InferRequest object.
Definition: ie_infer_request.hpp:307
This class represents an object to work with different parameters.
Definition: ie_parameter.hpp:37
std::shared_ptr< RemoteContext > Ptr
A smart pointer to the RemoteContext object.
Definition: ie_remote_context.hpp:99
C++ exception based error reporting wrapper of API class IVariableState.
Definition: ie_memory_state.hpp:24
A header file that provides wrapper for ICNNNetwork object.
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:25
A header file that provides macros to handle no exception methods.
a header file for IExecutableNetwork interface
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:30
A header file that provides wrapper classes for infer requests and callbacks.
A header file that provides wrapper classes for IVariableState.
A header file for definition of abstraction over platform specific shared objects.
Represents detailed information for an error.
Definition: ie_common.h:245
char msg[4096]
A character buffer that holds the detailed information for an error.
Definition: ie_common.h:249