forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
async_infer_request.hpp
29 lines (22 loc) · 964 Bytes
/
async_infer_request.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <vector>
#include "cpp_interfaces/impl/ie_infer_async_request_thread_safe_default.hpp"
#include "infer_request.hpp"
namespace HeteroPlugin {
class HeteroAsyncInferRequest : public InferenceEngine::AsyncInferRequestThreadSafeDefault {
public:
using Ptr = std::shared_ptr<HeteroAsyncInferRequest>;
HeteroAsyncInferRequest(const InferenceEngine::IInferRequestInternal::Ptr& request,
const InferenceEngine::ITaskExecutor::Ptr& taskExecutor,
const InferenceEngine::ITaskExecutor::Ptr& callbackExecutor);
~HeteroAsyncInferRequest();
InferenceEngine::StatusCode Wait(int64_t millis_timeout) override;
InferenceEngine::Blob::Ptr GetBlob(const std::string& name) override;
private:
HeteroInferRequest::Ptr _heteroInferRequest;
};
} // namespace HeteroPlugin