forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FrontEnds.cmake: FEM include headers as public (openvinotoolkit#9792)
ONNX/Paddle/TF frontends: added 'standalone_build' target to verify that frontends can be used standalone by applications
- Loading branch information
Showing
10 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/core/tests/frontend/onnx/standalone_build/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (C) 2018-2022 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
set(TARGET_NAME "onnx_fe_standalone_build_test") | ||
|
||
add_library(${TARGET_NAME} STATIC standalone_build_test.cpp) | ||
|
||
# This test verifies that application can link to ONNX frontend only | ||
# Other dependencies on core header files will be resolved automatically | ||
target_link_libraries(${TARGET_NAME} PUBLIC openvino::frontend::onnx) | ||
|
||
# Enable code style check | ||
add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME}) |
10 changes: 10 additions & 0 deletions
10
src/core/tests/frontend/onnx/standalone_build/standalone_build_test.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (C) 2018-2022 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#include <openvino/frontend/onnx/frontend.hpp> | ||
|
||
void test_load() { | ||
ov::frontend::onnx::FrontEnd fe; | ||
fe.get_name(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/core/tests/frontend/paddle/standalone_build/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (C) 2018-2022 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
set(TARGET_NAME "paddle_fe_standalone_build_test") | ||
|
||
add_library(${TARGET_NAME} STATIC standalone_build_test.cpp) | ||
|
||
# This test verifies that application can link to Paddle frontend only | ||
# Other dependencies on core header files will be resolved automatically | ||
target_link_libraries(${TARGET_NAME} PUBLIC openvino::frontend::paddle) | ||
|
||
# Enable code style check | ||
add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME}) |
10 changes: 10 additions & 0 deletions
10
src/core/tests/frontend/paddle/standalone_build/standalone_build_test.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (C) 2018-2022 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#include <openvino/frontend/paddle/frontend.hpp> | ||
|
||
void test_load() { | ||
ov::frontend::paddle::FrontEnd fe; | ||
fe.get_name(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/core/tests/frontend/tensorflow/standalone_build/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (C) 2018-2022 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
set(TARGET_NAME "tensorflow_fe_standalone_build_test") | ||
|
||
add_library(${TARGET_NAME} STATIC standalone_build_test.cpp) | ||
|
||
# This test verifies that application can link to TensorFlow frontend only | ||
# Other dependencies on core header files will be resolved automatically | ||
target_link_libraries(${TARGET_NAME} PUBLIC ov_tensorflow_frontend) | ||
|
||
# Enable code style check | ||
add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME}) |
10 changes: 10 additions & 0 deletions
10
src/core/tests/frontend/tensorflow/standalone_build/standalone_build_test.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (C) 2018-2022 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#include <openvino/frontend/tensorflow/frontend.hpp> | ||
|
||
void test_load() { | ||
ov::frontend::tensorflow::FrontEnd fe; | ||
fe.get_name(); | ||
} |