Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-gorokhov committed Jan 2, 2025
1 parent aaf1bb8 commit 0ce36c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/inference/dev_api/openvino/runtime/plugin_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
OV_CONFIG_OPTION(PropertyNamespace, PropertyVar, OptionVisibility::DEBUG, __VA_ARGS__)

namespace ov {
#define ENABLE_DEBUG_CAPS

enum class OptionVisibility : uint8_t {
RELEASE = 1 << 0, // Option can be set for any build type via public interface, environment and config file
RELEASE_INTERNAL = 1 << 1, // Option can be set for any build type via environment and config file only
Expand Down Expand Up @@ -247,7 +247,7 @@ class OPENVINO_RUNTIME_API PluginConfig {
if (!is_set_by_user(property)) {
auto rt_info_val = rt_info.find(property.name());
if (rt_info_val != rt_info.end()) {
set_property(property(rt_info_val->second.template as<T>()));
set_user_property(ov::AnyMap({property(rt_info_val->second.template as<T>())}), OptionVisibility::RELEASE);
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/intel_cpu/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ std::shared_ptr<ov::ICompiledModel> Plugin::compile_model(const std::shared_ptr<
// conf.readProperties(config, modelType);

Config config = m_plugin_config;
config.set_property(properties, OptionVisibility::RELEASE);
config.set_user_property(properties, OptionVisibility::RELEASE);
config.modelType = getModelType(model);

Transformations transformations(cloned_model, config);
Expand Down Expand Up @@ -319,7 +319,7 @@ std::shared_ptr<ov::ICompiledModel> Plugin::compile_model(const std::shared_ptr<
}

void Plugin::set_property(const ov::AnyMap& config) {
m_plugin_config.set_property(config, OptionVisibility::RELEASE);
m_plugin_config.set_user_property(config, OptionVisibility::RELEASE);
}

ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& options) const {
Expand Down Expand Up @@ -532,7 +532,7 @@ ov::SupportedOpsMap Plugin::query_model(const std::shared_ptr<const ov::Model>&
}

Config config = m_plugin_config;
config.set_property(properties, OptionVisibility::RELEASE);
config.set_user_property(properties, OptionVisibility::RELEASE);
config.modelType = getModelType(model);
config.finalize(get_default_context(), get_rt_info(*model));
auto context = std::make_shared<GraphContext>(config, fake_w_cache, false);
Expand Down Expand Up @@ -603,7 +603,7 @@ std::shared_ptr<ov::ICompiledModel> Plugin::import_model(std::istream& model_str
deserializer >> model;

Config config = m_plugin_config;
config.set_property(properties, OptionVisibility::RELEASE);
config.set_user_property(properties, OptionVisibility::RELEASE);
config.modelType = getModelType(model);

// import config props from caching model
Expand Down

0 comments on commit 0ce36c0

Please sign in to comment.