Removed redundant sources from core component (#9689)

* Removed redundant sources from core component

* Fixed CC build

* Removed redundant includes
This commit is contained in:
Ilya Churaev 2022-01-17 16:16:03 +03:00 committed by GitHub
parent 7ca9641ead
commit 6c0cddec78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 4 additions and 17 deletions

View File

@ -15,9 +15,7 @@
NGRAPH_RTTI_DEFINITION(ngraph::pass::SetBatchSize, "SetBatchSize", 0);
bool ngraph::pass::SetBatchSize::run_on_model(const std::shared_ptr<ngraph::Function>& f) {
// TODO: enable conditional compile
// RUN_ON_FUNCTION_SCOPE(SetBatchSize);
OV_ITT_SCOPED_TASK(ov::itt::domains::nGraph, "ngraph::pass::SetBatchSize");
RUN_ON_FUNCTION_SCOPE(SetBatchSize);
ngraph::pass::Manager manager;
// This pass must be called first in pipeline

View File

@ -223,9 +223,7 @@ bool squeezes_perform_the_same(std::shared_ptr<ngraph::opset5::Squeeze> lhs,
} // namespace
bool ngraph::pass::SharedSqueeze::run_on_model(const std::shared_ptr<ngraph::Function>& f) {
// TODO: enable conditional compile
// RUN_ON_FUNCTION_SCOPE(SharedSqueeze);
OV_ITT_SCOPED_TASK(ov::itt::domains::nGraph, "ngraph::pass::SharedSqueeze");
RUN_ON_FUNCTION_SCOPE(SharedSqueeze);
bool graph_rewritten = false;

View File

@ -22,24 +22,15 @@ add_subdirectory(builder)
add_subdirectory(reference)
add_subdirectory(shape_inference)
# WA for Tensor implementation via ie::Blob::Ptr
set(IE_SHARED_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/src/ie_legacy/blob_factory.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/ie_legacy/ie_blob_common.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/ie_legacy/ie_layouts.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/ie_legacy/system_allocator.cpp")
set(MIXED_SRC ${IE_SHARED_SRCS}
set(MIXED_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/src/runtime/allocator.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/runtime/ov_tensor.cpp")
set_property(SOURCE ${MIXED_SRC}
APPEND PROPERTY INCLUDE_DIRECTORIES
$<TARGET_PROPERTY:inference_engine_obj,SOURCE_DIR>/src
$<TARGET_PROPERTY:inference_engine,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:inference_engine_plugin_api,INTERFACE_INCLUDE_DIRECTORIES>)
set_source_files_properties(${MIXED_SRC}
PROPERTIES COMPILE_DEFINITIONS IMPLEMENT_INFERENCE_ENGINE_API)
# Create named folders for the sources within the .vcproj
# Empty name lists them directly under the .vcproj
@ -51,7 +42,7 @@ add_library(ov_core_dev INTERFACE)
target_include_directories(ov_core_dev INTERFACE $<BUILD_INTERFACE:${OpenVINO_SOURCE_DIR}/src/core/dev_api>)
# Create static or shared library depending on BUILD_SHARED_LIBS
add_library(ngraph_obj OBJECT ${LIBRARY_SRC} ${PUBLIC_HEADERS} ${IE_SHARED_SRCS})
add_library(ngraph_obj OBJECT ${LIBRARY_SRC} ${PUBLIC_HEADERS})
target_compile_definitions(ngraph_obj PRIVATE IMPLEMENT_OPENVINO_API)