Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov authored and yekruglov committed Jun 7, 2021
1 parent 4ee0714 commit bba8899
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions docs/template_plugin/src/template_infer_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <map>

#include <ngraph/runtime/reference/convert.hpp>
#include "template_infer_request.hpp"
#include "template_executable_network.hpp"
#include "template_plugin.hpp"
Expand Down Expand Up @@ -114,9 +115,10 @@ void TemplateInferRequest::InferImpl() {

template<typename SrcT, typename DstT>
static void blobCopy(const Blob::Ptr& src, const Blob::Ptr& dst) {
std::copy_n(InferenceEngine::as<InferenceEngine::MemoryBlob>(src)->rmap().as<const SrcT*>(),
src->size(),
InferenceEngine::as<InferenceEngine::MemoryBlob>(dst)->wmap().as<DstT*>());
ngraph::runtime::reference::convert<SrcT, DstT>(
InferenceEngine::as<InferenceEngine::MemoryBlob>(src)->rmap().as<const SrcT*>(),
InferenceEngine::as<InferenceEngine::MemoryBlob>(dst)->wmap().as<DstT*>(),
src->size());
}

static void blobCopy(const Blob::Ptr& src, const Blob::Ptr& dst) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ StatusCode HeteroAsyncInferRequest::Wait(int64_t millis_timeout) {
waitStatus = AsyncInferRequestThreadSafeDefault::Wait(millis_timeout);
} catch(...) {
for (auto&& requestDesc : _heteroInferRequest->_inferRequests) {
requestDesc._request->Wait(-1);
requestDesc._request->Wait(InferRequest::RESULT_READY);
}
throw;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ExecutableNetworkInternal : public IExecutableNetworkInternal {
* @param[in] plugin The plugin
* @note Needed to correctly handle ownership between objects.
*/
virtual void SetPointerToPlugin(IInferencePlugin::Ptr plugin) {
void SetPointerToPlugin(const IInferencePlugin::Ptr& plugin) {
_plugin = plugin;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ add_library(cpuSpecificRtInfo STATIC ${IE_MAIN_SOURCE_DIR}/src/mkldnn_plugin/uti
target_link_libraries(cpuSpecificRtInfo PRIVATE ${NGRAPH_LIBRARIES})

set(INCLUDES ${CMAKE_CURRENT_SOURCE_DIR} ${IE_MAIN_SOURCE_DIR}/src/mkldnn_plugin)
set(DEPENDENCIES MKLDNNPlugin)
set(DEPENDENCIES MKLDNNPlugin AutoPlugin)
set(LINK_LIBRARIES funcSharedTests cpuSpecificRtInfo)
if (NGRAPH_ONNX_IMPORT_ENABLE AND NOT NGRAPH_USE_PROTOBUF_LITE)
list(APPEND INCLUDES "${OpenVINO_MAIN_SOURCE_DIR}/docs/onnx_custom_op")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ addIeTargetTest(
${CMAKE_CURRENT_SOURCE_DIR}
DEPENDENCIES
clDNNPlugin
AutoPlugin
LINK_LIBRARIES
funcSharedTests
${CLDNN__OCL_ICD_LIBPATH}
Expand Down

0 comments on commit bba8899

Please sign in to comment.