Removed legacy dependency in template_extensions (#3026)

This commit is contained in:
Ilya Lavrenov 2020-11-09 20:48:46 +03:00 committed by GitHub
parent b8c7731600
commit 4c5568e858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -15,10 +15,10 @@ file(GLOB_RECURSE SRC *.cpp)
add_library(${TARGET_NAME} SHARED ${SRC}) add_library(${TARGET_NAME} SHARED ${SRC})
target_compile_definitions(${TARGET_NAME} PRIVATE IMPLEMENT_INFERENCE_EXTENSION_API) 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) 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) target_compile_definitions(${TARGET_NAME} PRIVATE NGRAPH_ONNX_IMPORT_ENABLED)
endif() endif()
target_link_libraries(${TARGET_NAME} PRIVATE ${LIBRARIES})
# [cmake:extension] # [cmake:extension]

View File

@ -705,7 +705,7 @@ namespace
Shape shape = p.to_shape(); 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));
} }
} }