diff --git a/src/plugins/template/src/config.cpp b/src/plugins/template/src/config.cpp index 683439d9701..39e51ad262b 100644 --- a/src/plugins/template/src/config.cpp +++ b/src/plugins/template/src/config.cpp @@ -54,6 +54,10 @@ Configuration::Configuration(const ov::AnyMap& config, const Configuration& defa num_requests = tmp_i; else OPENVINO_THROW("Incorrect value, it should be unsigned integer: ", key); + } else if (ov::log::level == key) { + log_level = value.as(); + } else if (ov::hint::model_priority == key) { + model_priority = value.as(); } else if (throwOnUnsupported) { OPENVINO_THROW("Property was not found: ", key); } @@ -90,6 +94,10 @@ ov::Any Configuration::Get(const std::string& name) const { return execution_mode; } else if (name == ov::hint::num_requests) { return num_requests; + } else if (name == ov::log::level) { + return log_level; + } else if (name == ov::hint::model_priority) { + return model_priority; } else { OPENVINO_THROW("Property was not found: ", name); } diff --git a/src/plugins/template/src/config.hpp b/src/plugins/template/src/config.hpp index d891fd472de..918e2b514f7 100644 --- a/src/plugins/template/src/config.hpp +++ b/src/plugins/template/src/config.hpp @@ -41,6 +41,9 @@ struct Configuration { // unused ov::element::Type inference_precision = ov::element::undefined; ov::hint::ExecutionMode execution_mode = ov::hint::ExecutionMode::ACCURACY; + ov::log::Level log_level = ov::log::Level::NO; + + ov::hint::Priority model_priority = ov::hint::Priority::DEFAULT; }; // ! [configuration:header] diff --git a/src/plugins/template/src/plugin.cpp b/src/plugins/template/src/plugin.cpp index fde640e7f01..d96ea739d58 100644 --- a/src/plugins/template/src/plugin.cpp +++ b/src/plugins/template/src/plugin.cpp @@ -237,7 +237,8 @@ ov::Any ov::template_plugin::Plugin::get_property(const std::string& name, const ov::hint::inference_precision, ov::hint::execution_mode, ov::num_streams, - ov::template_plugin::disable_transformations}; + ov::template_plugin::disable_transformations, + ov::log::level}; return rw_properties; }; if (ov::supported_properties == name) { diff --git a/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp b/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp index ac66fea4559..6bb177b77cc 100644 --- a/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp +++ b/src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp @@ -367,6 +367,10 @@ TEST_P(OVCheckChangePropComplieModleGetPropTests_DEVICE_ID, ChangeCorrectDeviceP auto device_ids = core->get_available_devices(); for (auto&& device_name_with_id : device_ids) { + if (device_name_with_id.find(target_device) == std::string::npos) { + continue; + } + std::string device_name = device_name_with_id; std::string device_id = ""; auto pos = device_name_with_id.find('.');