From 4c5568e8584acae3345285f961526c3abe0f1ce0 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 9 Nov 2020 20:48:46 +0300 Subject: [PATCH] Removed legacy dependency in template_extensions (#3026) --- docs/template_extension/CMakeLists.txt | 6 +++--- ngraph/core/src/op/non_max_suppression.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/template_extension/CMakeLists.txt b/docs/template_extension/CMakeLists.txt index 4133f03598a..6e53349c41c 100644 --- a/docs/template_extension/CMakeLists.txt +++ b/docs/template_extension/CMakeLists.txt @@ -15,10 +15,10 @@ file(GLOB_RECURSE SRC *.cpp) add_library(${TARGET_NAME} SHARED ${SRC}) target_compile_definitions(${TARGET_NAME} PRIVATE IMPLEMENT_INFERENCE_EXTENSION_API) -set(LIBRARIES IE::inference_engine_legacy IE::inference_engine ${NGRAPH_LIBRARIES}) +target_link_libraries(${TARGET_NAME} PRIVATE IE::inference_engine ${NGRAPH_LIBRARIES}) + if (ngraph_onnx_importer_FOUND) - list(APPEND LIBRARIES ${ONNX_IMPORTER_LIBRARIES}) + target_link_libraries(${TARGET_NAME} PRIVATE ${ONNX_IMPORTER_LIBRARIES}) target_compile_definitions(${TARGET_NAME} PRIVATE NGRAPH_ONNX_IMPORT_ENABLED) endif() -target_link_libraries(${TARGET_NAME} PRIVATE ${LIBRARIES}) # [cmake:extension] diff --git a/ngraph/core/src/op/non_max_suppression.cpp b/ngraph/core/src/op/non_max_suppression.cpp index f5b94ac263c..3b5e92be0fa 100644 --- a/ngraph/core/src/op/non_max_suppression.cpp +++ b/ngraph/core/src/op/non_max_suppression.cpp @@ -705,7 +705,7 @@ namespace Shape shape = p.to_shape(); - return is_scalar(shape) || (is_vector(shape) && (shape[0] == 1)); + return ngraph::is_scalar(shape) || (is_vector(shape) && (shape[0] == 1)); } }