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