11 #include "cpp_interfaces/impl/ie_infer_request_internal.hpp"
12 #include "cpp_interfaces/interface/ie_iinfer_async_request_internal.hpp"
17 #pragma warning(disable : 4250)
29 typedef std::shared_ptr<AsyncInferRequestInternal>
Ptr;
minimum API to be implemented by plugin, which is used in InferRequestBase forwarding mechanism
Definition: ie_infer_async_request_internal.hpp:24
std::shared_ptr< AsyncInferRequestInternal > Ptr
A shared pointer to a AsyncInferRequestInternal implementation.
Definition: ie_infer_async_request_internal.hpp:29
AsyncInferRequestInternal(const InputsDataMap &networkInputs, const OutputsDataMap &networkOutputs)
Constructs a new instance.
Definition: ie_infer_async_request_internal.hpp:36
void SetCompletionCallback(IInferRequest::CompletionCallback callback) override
Set callback function which will be called on success or failure of asynchronous request.
Definition: ie_infer_async_request_internal.hpp:39
void SetUserData(void *data) override
Set arbitrary data for the request.
Definition: ie_infer_async_request_internal.hpp:48
void SetPointerToPublicInterface(IInferRequest::Ptr ptr)
Set weak pointer to the corresponding public interface: IInferRequest. This allow to pass it to IInfe...
Definition: ie_infer_async_request_internal.hpp:57
InferenceEngine::IInferRequest::CompletionCallback _callback
A callback.
Definition: ie_infer_async_request_internal.hpp:78
IInferRequest::WeakPtr _publicInterface
A weak pointer to a IInferRequest interface for callback calling.
Definition: ie_infer_async_request_internal.hpp:77
virtual void StartAsyncImpl()=0
The minimal asynchronous inference function to be implemented by plugins. It starts inference of spec...
void * _userData
A callback user data.
Definition: ie_infer_async_request_internal.hpp:79
void StartAsync() override
Start inference of specified input(s) in asynchronous mode.
Definition: ie_infer_async_request_internal.hpp:61
void GetUserData(void **data) override
Get arbitrary data for the request.
Definition: ie_infer_async_request_internal.hpp:43
An internal API of asynchronous inference request to be implemented by plugin, which is used in Infer...
Definition: ie_iinfer_async_request_internal.hpp:22
std::weak_ptr< IInferRequest > WeakPtr
void(* CompletionCallback)(InferenceEngine::IInferRequest::Ptr context, InferenceEngine::StatusCode code)
std::shared_ptr< IInferRequest > Ptr
An optimal implementation of IInferRequestInternal interface to avoid duplication in all plugins This...
Definition: ie_infer_request_internal.hpp:32
virtual void checkBlobs()
Checks that both inputs and outputs blob are valid. Throws an exception if they are not.
Definition: ie_infer_request_internal.hpp:233
#define NOT_ALLOCATED_str
Defines the not allocated message.
Definition: exception2status.hpp:142
#define THROW_IE_EXCEPTION
Inference Engine Plugin API namespace.
std::map< std::string, InputInfo::Ptr > InputsDataMap
std::map< std::string, DataPtr > OutputsDataMap