18 #include "cpp/ie_memory_state.hpp"
60 this->actual.swap(newActual);
68 IInferRequest::Ptr req;
70 if (req.get() ==
nullptr)
THROW_IE_EXCEPTION <<
"Internal error: pointer to infer request is null";
80 IInferRequest::Ptr req;
82 return std::make_shared<InferRequest>(req);
90 void Export(
const std::string &modelFileName) {
91 CALL_STATUS_FNC(
Export, modelFileName);
99 void GetMappedTopology(std::map<std::string, std::vector<PrimitiveInfo::Ptr>> &deployedTopology) {
116 ICNNNetwork::Ptr ptr =
nullptr;
125 IMemoryState::Ptr pState =
nullptr;
127 std::vector<MemoryState> controller;
128 for (
size_t idx = 0; res == OK; ++idx) {
130 res = actual->QueryState(pState, idx, &resp);
131 if (res != OK && res != OUT_OF_BOUNDS) {
134 if (res != OUT_OF_BOUNDS) {
143 using Ptr = std::shared_ptr<ExecutableNetwork>;
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:22
A header file that provides wrapper for ICNNNetwork object.
std::vector< MemoryState > QueryState()
see original function InferenceEngine::IExecutableNetwork::QueryState
Definition: ie_executable_network.hpp:124
Definition: ie_argmax_layer.hpp:11
a header file for IExecutableNetwork interface
A header file that provides macros to handle no exception methods.
InferRequest CreateInferRequest()
Wraps original method IExecutableNetwork::CreateInferRequest.
Definition: ie_executable_network.hpp:67
ConstOutputsDataMap GetOutputsInfo() const
Wraps original method IExecutableNetwork::getOutputsInfo.
Definition: ie_executable_network.hpp:39
This class is a wrapper of IInferRequest to provide setters/getters of input/output which operates wi...
Definition: ie_infer_request.hpp:58
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:27
Represents detailed information for an error.
Definition: ie_common.h:198
wrapper over IExecutableNetwork
Definition: ie_executable_network.hpp:27
void GetMappedTopology(std::map< std::string, std::vector< PrimitiveInfo::Ptr >> &deployedTopology)
Gets the mapping of IR layer names to implemented kernels.
Definition: ie_executable_network.hpp:99
CNNNetwork GetExecGraphInfo()
Get executable graph information from a plugin represented as CNNNetwork.
Definition: ie_executable_network.hpp:115
This class contains all the information about the Neural Network and the related binary information...
Definition: ie_cnn_network.h:29
c++ exception based error reporting wrapper of API class IMemoryState
Definition: ie_memory_state.hpp:13
void Export(const std::string &modelFileName)
Exports the current executable network so it can be used later in the Import() main API...
Definition: ie_executable_network.hpp:90
ConstInputsDataMap GetInputsInfo() const
Wraps original method IExecutableNetwork::getInputsInfo.
Definition: ie_executable_network.hpp:49
char msg[256]
A character buffer that holds the detailed information for an error.
Definition: ie_common.h:202
std::shared_ptr< IExecutableNetwork > Ptr
A smart pointer to the current IExecutableNetwork object.
Definition: ie_iexecutable_network.hpp:37
A header file that provides wrapper classes for infer requests and callbacks.
void reset(IExecutableNetwork::Ptr newActual)
reset owned object to new pointer, essential for cases when simultaneously loaded networks not expect...
Definition: ie_executable_network.hpp:59
InferRequest::Ptr CreateInferRequestPtr()
Wraps original method IExecutableNetwork::CreateInferRequestPtr.
Definition: ie_executable_network.hpp:79