Renamed template plugin and tests (#9389)
* Renamed template plugin and plugin's tests * Renamed template_extension
This commit is contained in:
1 parent
da67ba135c
commit
5e1d241c11
29 files changed
+65
-53
No files matched your search
+1
-1
@@ -293,7 +293,7 @@ jobs:
|
||||
displayName: 'IE FuncTests'
|
||||
continueOnError: false
|
||||
|
||||
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/templateFuncTests --gtest_filter=*smoke* --gtest_output=xml:TEST-templateFuncTests.xml
|
||||
- script: . $(SETUPVARS) && $(INSTALL_TEST_DIR)/ov_template_func_tests --gtest_filter=*smoke* --gtest_output=xml:TEST-templateFuncTests.xml
|
||||
displayName: 'TEMPLATE FuncTests'
|
||||
continueOnError: false
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ jobs:
|
||||
displayName: 'IE FuncTests'
|
||||
continueOnError: false
|
||||
|
||||
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\templateFuncTests --gtest_output=xml:TEST-templateFuncTests.xml
|
||||
- script: call $(SETUPVARS) && $(INSTALL_TEST_DIR)\ov_template_func_tests --gtest_output=xml:TEST-templateFuncTests.xml
|
||||
displayName: 'TEMPLATE FuncTests'
|
||||
continueOnError: false
|
||||
|
||||
|
||||
@@ -257,6 +257,10 @@ function(ie_mark_target_as_cc TARGET_NAME)
|
||||
set_source_files_properties(${sources} PROPERTIES OBJECT_DEPENDS ${GENERATED_HEADER})
|
||||
endfunction()
|
||||
|
||||
function(ov_mark_target_as_cc)
|
||||
ie_mark_target_as_cc(${ARGN})
|
||||
endfunction()
|
||||
|
||||
# check python package
|
||||
|
||||
function(ie_check_pip_package full_name message_type)
|
||||
|
||||
@@ -193,6 +193,10 @@ macro(ie_add_compiler_flags)
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
function(ov_add_compiler_flags)
|
||||
ie_add_compiler_flags(${ARGN})
|
||||
endfunction()
|
||||
|
||||
#
|
||||
# Forced includes certain header file to all target source files
|
||||
#
|
||||
|
||||
+3
-3
@@ -23,8 +23,8 @@ if(NOT ENABLE_DOCKER)
|
||||
add_subdirectory(template_extension)
|
||||
|
||||
set(all_docs_targets
|
||||
ie_docs_snippets templateFuncTests
|
||||
template_extension template_ov_extension templatePlugin)
|
||||
ie_docs_snippets ov_template_func_tests
|
||||
template_extension ov_template_extension ov_template_plugin)
|
||||
foreach(target_name IN LISTS all_docs_targets)
|
||||
if(TARGET ${target_name})
|
||||
set_target_properties(${target_name} PROPERTIES FOLDER docs)
|
||||
@@ -36,7 +36,7 @@ if(NOT ENABLE_DOCKER)
|
||||
|
||||
# install
|
||||
|
||||
foreach(target templatePlugin template_extension template_ov_extension)
|
||||
foreach(target ov_template_plugin template_extension ov_template_extension)
|
||||
if(TARGET ${target})
|
||||
install(TARGETS ${target}
|
||||
LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH}
|
||||
|
||||
@@ -59,13 +59,17 @@ To build a plugin and its tests, run the following CMake scripts:
|
||||
- Root `CMakeLists.txt`, which finds the Inference Engine Developer Package using the `find_package` CMake command and adds the `src` and `tests` subdirectories with plugin sources and their tests respectively:
|
||||
|
||||
```cmake
|
||||
cmake_minimum_required(VERSION 3.13.3)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
project(InferenceEngineTemplatePlugin)
|
||||
project(OpenVINOTemplatePlugin)
|
||||
|
||||
set(IE_MAIN_TEMPLATE_PLUGIN_SOURCE_DIR ${InferenceEngineTemplatePlugin_SOURCE_DIR})
|
||||
set(TEMPLATE_PLUGIN_SOURCE_DIR ${OpenVINOTemplatePlugin_SOURCE_DIR})
|
||||
|
||||
find_package(InferenceEngineDeveloperPackage REQUIRED)
|
||||
find_package(OpenVINODeveloperPackage REQUIRED)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
ov_add_compiler_flags(-Wall)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# [cmake:extension]
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
set(TARGET_NAME "template_ov_extension")
|
||||
set(TARGET_NAME "ov_template_extension")
|
||||
|
||||
find_package(OpenVINO)
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@ cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
project(OpenVINOTemplatePlugin)
|
||||
|
||||
set(IE_MAIN_TEMPLATE_PLUGIN_SOURCE_DIR ${OpenVINOTemplatePlugin_SOURCE_DIR})
|
||||
set(TEMPLATE_PLUGIN_SOURCE_DIR ${OpenVINOTemplatePlugin_SOURCE_DIR})
|
||||
|
||||
find_package(OpenVINODeveloperPackage REQUIRED)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
ie_add_compiler_flags(-Wall)
|
||||
ov_add_compiler_flags(-Wall)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
# [cmake:plugin]
|
||||
set(TARGET_NAME "templatePlugin")
|
||||
set(TARGET_NAME "ov_template_plugin")
|
||||
|
||||
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
|
||||
@@ -17,11 +17,11 @@ ov_add_plugin(NAME ${TARGET_NAME}
|
||||
ADD_CLANG_FORMAT)
|
||||
|
||||
# Enable support of CC for the plugin
|
||||
ie_mark_target_as_cc(${TARGET_NAME})
|
||||
ov_mark_target_as_cc(${TARGET_NAME})
|
||||
|
||||
target_include_directories(${TARGET_NAME} PRIVATE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
"${IE_MAIN_TEMPLATE_PLUGIN_SOURCE_DIR}/include")
|
||||
"${TEMPLATE_PLUGIN_SOURCE_DIR}/include")
|
||||
|
||||
# link common Inference Engine libraries
|
||||
target_link_libraries(${TARGET_NAME} PRIVATE
|
||||
|
||||
@@ -298,6 +298,6 @@ InferenceEngine::Parameter Plugin::GetMetric(const std::string& name,
|
||||
// ! [plugin:get_metric]
|
||||
|
||||
// ! [plugin:create_plugin_engine]
|
||||
static const InferenceEngine::Version version = {{2, 1}, CI_BUILD_NUMBER, "templatePlugin"};
|
||||
static const InferenceEngine::Version version = {{2, 1}, CI_BUILD_NUMBER, "ov_template_plugin"};
|
||||
IE_DEFINE_PLUGIN_CREATE_FUNCTION(Plugin, version)
|
||||
// ! [plugin:create_plugin_engine]
|
||||
@@ -3,17 +3,17 @@
|
||||
#
|
||||
|
||||
# [cmake:functional_tests]
|
||||
set(TARGET_NAME templateFuncTests)
|
||||
set(TARGET_NAME ov_template_func_tests)
|
||||
|
||||
ov_add_test_target(
|
||||
NAME ${TARGET_NAME}
|
||||
ROOT ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDENCIES
|
||||
templatePlugin
|
||||
ov_template_plugin
|
||||
LINK_LIBRARIES
|
||||
openvino::funcSharedTests
|
||||
INCLUDES
|
||||
"${IE_MAIN_TEMPLATE_PLUGIN_SOURCE_DIR}/include"
|
||||
"${TEMPLATE_PLUGIN_SOURCE_DIR}/include"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/op_reference"
|
||||
ADD_CPPLINT
|
||||
LABELS
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ namespace {
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
smoke_IEClassBasicTestP, IEClassBasicTestP,
|
||||
::testing::Values(std::make_pair("templatePlugin", CommonTestUtils::DEVICE_TEMPLATE)));
|
||||
::testing::Values(std::make_pair("ov_template_plugin", CommonTestUtils::DEVICE_TEMPLATE)));
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
smoke_IEClassNetworkTestP, IEClassNetworkTestP,
|
||||
|
||||
@@ -16,13 +16,13 @@ using namespace HeteroTests;
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_SingleMajorNode, HeteroSyntheticTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "ov_template_plugin"}, {"TEMPLATE1", "ov_template_plugin"}}),
|
||||
::testing::ValuesIn(HeteroTests::HeteroSyntheticTest::_singleMajorNodeFunctions)),
|
||||
HeteroSyntheticTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(nightly_RandomMajorNodes, HeteroSyntheticTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "ov_template_plugin"}, {"TEMPLATE1", "ov_template_plugin"}}),
|
||||
::testing::ValuesIn(HeteroTests::HeteroSyntheticTest::_randomMajorNodeFunctions)),
|
||||
HeteroSyntheticTest::getTestCaseName);
|
||||
|
||||
@@ -32,42 +32,42 @@ static std::vector<std::function<std::shared_ptr<ngraph::Function>()>> dynamicBu
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_NonZeroMajorNode_dynamic, HeteroSyntheticTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "ov_template_plugin"}, {"TEMPLATE1", "ov_template_plugin"}}),
|
||||
::testing::ValuesIn(HeteroTests::HeteroSyntheticTest::withMajorNodesFunctions(
|
||||
dynamicBuilders.front(), {"nonZero_1"}))),
|
||||
HeteroSyntheticTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_NonZeroMajorNode_dynamic_batch, HeteroSyntheticTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "ov_template_plugin"}, {"TEMPLATE1", "ov_template_plugin"}}),
|
||||
::testing::ValuesIn(HeteroTests::HeteroSyntheticTest::withMajorNodesFunctions(
|
||||
dynamicBuilders.front(), {"nonZero_1"}, true))),
|
||||
HeteroSyntheticTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_SingleMajorNode_dynamic, HeteroSyntheticTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "ov_template_plugin"}, {"TEMPLATE1", "ov_template_plugin"}}),
|
||||
::testing::ValuesIn(HeteroTests::HeteroSyntheticTest::singleMajorNodeFunctions(
|
||||
dynamicBuilders))),
|
||||
HeteroSyntheticTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(nightly_RandomMajorNodes_dynamic, HeteroSyntheticTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "ov_template_plugin"}, {"TEMPLATE1", "ov_template_plugin"}}),
|
||||
::testing::ValuesIn(HeteroTests::HeteroSyntheticTest::randomMajorNodeFunctions(
|
||||
dynamicBuilders))),
|
||||
HeteroSyntheticTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_SingleMajorNode_dynamic_batch, HeteroSyntheticTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "ov_template_plugin"}, {"TEMPLATE1", "ov_template_plugin"}}),
|
||||
::testing::ValuesIn(HeteroTests::HeteroSyntheticTest::singleMajorNodeFunctions(
|
||||
dynamicBuilders, true))),
|
||||
HeteroSyntheticTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(nightly_RandomMajorNodes_dynamic_batch, HeteroSyntheticTest,
|
||||
::testing::Combine(
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
|
||||
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "ov_template_plugin"}, {"TEMPLATE1", "ov_template_plugin"}}),
|
||||
::testing::ValuesIn(HeteroTests::HeteroSyntheticTest::randomMajorNodeFunctions(
|
||||
dynamicBuilders, true))),
|
||||
HeteroSyntheticTest::getTestCaseName);
|
||||
|
||||
@@ -151,7 +151,7 @@ def test_blob_set_shape_after_async_infer():
|
||||
net = ng.function_to_cnn(function)
|
||||
net.reshape({"data": [(1, 5), 4, 20, 20]})
|
||||
ie_core = IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
request = exec_net.requests[0]
|
||||
request.async_infer({"data": np.ones([4, 4, 20, 20])})
|
||||
|
||||
@@ -64,7 +64,7 @@ def test_is_dynamic():
|
||||
function = create_relu([-1, 3, 20, 20])
|
||||
net = ng.function_to_cnn(function)
|
||||
ie = IECore()
|
||||
ie.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie.load_network(net, "TEMPLATE")
|
||||
assert exec_net.outputs["out"].is_dynamic
|
||||
p_shape = ng.partial_shape_from_data(exec_net.outputs["out"])
|
||||
|
||||
@@ -60,7 +60,7 @@ def test_is_dynamic():
|
||||
net.input_info["data"].input_data.shape
|
||||
assert "Cannot return dims for Data with dynamic shapes!" in str(e.value)
|
||||
ie = IECore()
|
||||
ie.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie.load_network(net, "TEMPLATE")
|
||||
assert exec_net.input_info["data"].input_data.is_dynamic
|
||||
p_shape = ng.partial_shape_from_data(exec_net.input_info["data"].input_data)
|
||||
|
||||
@@ -282,7 +282,7 @@ def test_create_two_exec_net():
|
||||
function = create_relu([ng.Dimension(0,5), ng.Dimension(4), ng.Dimension(20), ng.Dimension(20)])
|
||||
net = ng.function_to_cnn(function)
|
||||
ie_core = IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net1 = ie_core.load_network(net, "TEMPLATE", num_requests=2)
|
||||
assert ng.function_from_cnn(net) != None
|
||||
exec_net2 = ie_core.load_network(net, "TEMPLATE", num_requests=2)
|
||||
|
||||
@@ -592,7 +592,7 @@ def test_infer_dynamic_network_with_set_shape(shape, p_shape, ref_shape):
|
||||
net = ng.function_to_cnn(function)
|
||||
net.reshape({"data": p_shape})
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
exec_net.requests[0].input_blobs["data"].set_shape(ref_shape)
|
||||
assert exec_net.requests[0].input_blobs["data"].tensor_desc.dims == ref_shape
|
||||
@@ -616,7 +616,7 @@ def test_infer_dynamic_network_without_set_shape(shape, p_shape, ref_shape):
|
||||
net = ng.function_to_cnn(function)
|
||||
net.reshape({"data": p_shape})
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
exec_net.infer({"data": np.ones(ref_shape)})
|
||||
assert exec_net.requests[0].input_blobs["data"].tensor_desc.dims == ref_shape
|
||||
@@ -639,7 +639,7 @@ def test_infer_dynamic_network_with_set_blob(shape, p_shape, ref_shape):
|
||||
net = ng.function_to_cnn(function)
|
||||
net.reshape({"data": p_shape})
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
tensor_desc = exec_net.requests[0].input_blobs["data"].tensor_desc
|
||||
tensor_desc.dims = ref_shape
|
||||
@@ -662,7 +662,7 @@ def test_infer_dynamic_network_twice():
|
||||
net = ng.function_to_cnn(function)
|
||||
net.reshape({"data": p_shape})
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
request = exec_net.requests[0]
|
||||
request.infer({"data": np.ones(ref_shape1)})
|
||||
@@ -681,7 +681,7 @@ def test_infer_dynamic_network_with_set_blob_twice():
|
||||
net = ng.function_to_cnn(function)
|
||||
net.reshape({"data": p_shape})
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
request = exec_net.requests[0]
|
||||
td = request.input_blobs['data'].tensor_desc
|
||||
@@ -710,7 +710,7 @@ def test_async_infer_dynamic_network_3_requests(shapes):
|
||||
net = ng.function_to_cnn(function)
|
||||
net.reshape({"data": [3, 4, (20, 50), (20, 50)]})
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE", num_requests=3)
|
||||
for i,request in enumerate(exec_net.requests):
|
||||
request.async_infer({"data": np.ones(shapes[i])})
|
||||
@@ -725,7 +725,7 @@ def test_set_blob_with_incorrect_name():
|
||||
function = create_encoder([4, 4, 20, 20])
|
||||
net = ng.function_to_cnn(function)
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
tensor_desc = exec_net.requests[0].input_blobs["data"].tensor_desc
|
||||
tensor_desc.dims = [4, 4, 20, 20]
|
||||
@@ -740,7 +740,7 @@ def test_set_blob_with_incorrect_size():
|
||||
function = create_encoder([4, 4, 20, 20])
|
||||
net = ng.function_to_cnn(function)
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
tensor_desc = exec_net.requests[0].input_blobs["data"].tensor_desc
|
||||
tensor_desc.dims = [tensor_desc.dims[0]*2, 4, 20, 20]
|
||||
@@ -760,7 +760,7 @@ def test_set_blob_after_async_infer():
|
||||
net = ng.function_to_cnn(function)
|
||||
net.reshape({"data": [(0, 5), 4, 20, 20]})
|
||||
ie_core = ie.IECore()
|
||||
ie_core.register_plugin("templatePlugin", "TEMPLATE")
|
||||
ie_core.register_plugin("ov_template_plugin", "TEMPLATE")
|
||||
exec_net = ie_core.load_network(net, "TEMPLATE")
|
||||
request = exec_net.requests[0]
|
||||
tensor_desc = request.input_blobs['data'].tensor_desc
|
||||
|
||||
@@ -420,7 +420,7 @@ if(SUGGEST_OVERRIDE_SUPPORTED)
|
||||
PROPERTIES COMPILE_OPTIONS -Wno-suggest-override)
|
||||
endif()
|
||||
|
||||
list(APPEND UNIT_TESTS_DEPENDENCIES template_ov_extension)
|
||||
list(APPEND UNIT_TESTS_DEPENDENCIES ov_template_extension)
|
||||
|
||||
if (ENABLE_INTEL_CPU AND ENABLE_OV_CORE_BACKEND_UNIT_TESTS)
|
||||
message(STATUS "OV_CORE_TESTS: IE:CPU enabled")
|
||||
@@ -446,7 +446,7 @@ if (ENABLE_OV_CORE_BACKEND_UNIT_TESTS)
|
||||
message(STATUS "OV_CORE_TESTS: INTERPRETER enabled")
|
||||
set(ACTIVE_BACKEND_LIST ${ACTIVE_BACKEND_LIST} INTERPRETER)
|
||||
if (ENABLE_STRICT_DEPENDENCIES)
|
||||
list(APPEND UNIT_TESTS_DEPENDENCIES templatePlugin)
|
||||
list(APPEND UNIT_TESTS_DEPENDENCIES ov_template_plugin)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
TestCase(const std::shared_ptr<Function>& function, const std::string& dev = "TEMPLATE") : m_function{function} {
|
||||
try {
|
||||
// Register template plugin
|
||||
m_core.register_plugin(std::string("templatePlugin") + IE_BUILD_POSTFIX, "TEMPLATE");
|
||||
m_core.register_plugin(std::string("ov_template_plugin") + IE_BUILD_POSTFIX, "TEMPLATE");
|
||||
} catch (...) {
|
||||
}
|
||||
m_request = m_core.compile_model(function, dev).create_infer_request();
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "so_extension.hpp"
|
||||
|
||||
inline std::string get_extension_path() {
|
||||
return ov::util::make_plugin_library_name<char>({}, std::string("template_ov_extension") + IE_BUILD_POSTFIX);
|
||||
return ov::util::make_plugin_library_name<char>({}, std::string("ov_template_extension") + IE_BUILD_POSTFIX);
|
||||
}
|
||||
|
||||
TEST(extension, load_extension) {
|
||||
|
||||
@@ -26,7 +26,7 @@ set(LINK_LIBRARIES
|
||||
set(DEPENDENCIES
|
||||
mock_engine
|
||||
template_extension
|
||||
template_ov_extension
|
||||
ov_template_extension
|
||||
lptNgraphFunctions
|
||||
sharedTestClasses
|
||||
test_model_zoo
|
||||
|
||||
@@ -28,7 +28,7 @@ static std::string get_extension_path() {
|
||||
}
|
||||
|
||||
static std::string get_ov_extension_path() {
|
||||
return FileUtils::makePluginLibraryName<char>({}, std::string("template_ov_extension") + IE_BUILD_POSTFIX);
|
||||
return FileUtils::makePluginLibraryName<char>({}, std::string("ov_template_extension") + IE_BUILD_POSTFIX);
|
||||
}
|
||||
|
||||
class CustomOpsSerializationTest : public ::testing::Test {
|
||||
|
||||
@@ -174,7 +174,7 @@ public:
|
||||
namespace {
|
||||
|
||||
std::string getOVExtensionPath() {
|
||||
return FileUtils::makePluginLibraryName<char>({}, std::string("template_ov_extension") + IE_BUILD_POSTFIX);
|
||||
return FileUtils::makePluginLibraryName<char>({}, std::string("ov_template_extension") + IE_BUILD_POSTFIX);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ inline const std::string getPluginLibNameByDevice(const std::string& deviceName)
|
||||
{ "HETERO", "ov_hetero_plugin" },
|
||||
{ "MULTI", "ov_multi_plugin" },
|
||||
{ "MYRIAD", "myriadPlugin" },
|
||||
{ "TEMPLATE", "templatePlugin" },
|
||||
{ "TEMPLATE", "ov_template_plugin" },
|
||||
};
|
||||
if (devices.find(deviceName) == devices.end()) {
|
||||
throw std::runtime_error("Incorrect device name");
|
||||
|
||||
@@ -105,7 +105,7 @@ inline InferenceEngine::Core createIECoreWithTemplate() {
|
||||
PluginCache::get().reset();
|
||||
InferenceEngine::Core ie;
|
||||
#ifndef OPENVINO_STATIC_LIBRARY
|
||||
std::string pluginName = "templatePlugin";
|
||||
std::string pluginName = "ov_template_plugin";
|
||||
pluginName += IE_BUILD_POSTFIX;
|
||||
ie.RegisterPlugin(pluginName, CommonTestUtils::DEVICE_TEMPLATE);
|
||||
#endif // !OPENVINO_STATIC_LIBRARY
|
||||
|
||||
@@ -70,7 +70,7 @@ inline ov::runtime::Core createCoreWithTemplate() {
|
||||
ov::test::utils::PluginCache::get().reset();
|
||||
ov::runtime::Core core;
|
||||
#ifndef OPENVINO_STATIC_LIBRARY
|
||||
std::string pluginName = "templatePlugin";
|
||||
std::string pluginName = "ov_template_plugin";
|
||||
pluginName += IE_BUILD_POSTFIX;
|
||||
core.register_plugin(pluginName, CommonTestUtils::DEVICE_TEMPLATE);
|
||||
#endif // !OPENVINO_STATIC_LIBRARY
|
||||
|
||||
@@ -54,7 +54,7 @@ std::shared_ptr<ov::runtime::Core> PluginCache::core(const std::string &deviceTo
|
||||
|
||||
// register template plugin if it is needed
|
||||
try {
|
||||
std::string pluginName = "templatePlugin";
|
||||
std::string pluginName = "ov_template_plugin";
|
||||
pluginName += IE_BUILD_POSTFIX;
|
||||
ov_core->register_plugin(pluginName, "TEMPLATE");
|
||||
} catch (...) {
|
||||
|
||||
@@ -55,7 +55,7 @@ std::shared_ptr<InferenceEngine::Core> PluginCache::ie(const std::string &device
|
||||
|
||||
// register template plugin if it is needed
|
||||
try {
|
||||
std::string pluginName = "templatePlugin";
|
||||
std::string pluginName = "ov_template_plugin";
|
||||
pluginName += IE_BUILD_POSTFIX;
|
||||
ie_core->RegisterPlugin(pluginName, "TEMPLATE");
|
||||
} catch (...) {}
|
||||
|
||||
Reference in new issue
Block a user