@@ -176,7 +176,7 @@ std::shared_ptr<ov::ICompiledModel> Plugin::compile_model(const std::shared_ptr<
176
176
DEBUG_LOG (PrintableModel (*cloned_model, " org_" ));
177
177
178
178
Config config = m_plugin_config;
179
- config.set_user_property (properties, OptionVisibility::RELEASE);
179
+ config.set_properties (properties, OptionVisibility::RELEASE);
180
180
181
181
Transformations transformations (cloned_model, config);
182
182
@@ -219,7 +219,7 @@ std::shared_ptr<ov::ICompiledModel> Plugin::compile_model(const std::shared_ptr<
219
219
}
220
220
221
221
void Plugin::set_property (const ov::AnyMap& config) {
222
- m_plugin_config.set_user_property (config, OptionVisibility::RELEASE);
222
+ m_plugin_config.set_properties (config, OptionVisibility::RELEASE);
223
223
}
224
224
225
225
ov::Any Plugin::get_property (const std::string& name, const ov::AnyMap& options) const {
@@ -364,7 +364,9 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& options)
364
364
return res;
365
365
}
366
366
367
- return m_plugin_config.get_property (name, OptionVisibility::RELEASE);
367
+ auto config = m_plugin_config;
368
+ config.finalize (get_default_context ().get (), nullptr );
369
+ return config.get_property (name, OptionVisibility::RELEASE);
368
370
}
369
371
370
372
ov::SupportedOpsMap Plugin::query_model (const std::shared_ptr<const ov::Model>& model, const ov::AnyMap& properties) const {
@@ -375,7 +377,7 @@ ov::SupportedOpsMap Plugin::query_model(const std::shared_ptr<const ov::Model>&
375
377
}
376
378
377
379
Config config = m_plugin_config;
378
- config.set_user_property (properties, OptionVisibility::RELEASE);
380
+ config.set_properties (properties, OptionVisibility::RELEASE);
379
381
config.finalize (get_default_context ().get (), model.get ());
380
382
auto context = std::make_shared<GraphContext>(config, fake_w_cache, false , false );
381
383
@@ -445,10 +447,8 @@ std::shared_ptr<ov::ICompiledModel> Plugin::import_model(std::istream& model_str
445
447
deserializer >> model;
446
448
447
449
Config config = m_plugin_config;
448
- config.set_user_property (properties , OptionVisibility::RELEASE);
450
+ config.set_properties (_properties , OptionVisibility::RELEASE);
449
451
450
- // import config props from caching model
451
- // calculate_streams(config, model, true);
452
452
config.finalize (get_default_context ().get (), model.get ());
453
453
454
454
auto compiled_model = std::make_shared<CompiledModel>(model, shared_from_this (), config, loaded_from_cache);
0 commit comments