[AUTO] Remove cache_dir property from AUTO plugin (#16775)

* Remove cache_dir property from AUTO plugin

* Pass the secondary property to hardware plugin

* Update test case

* Update test case, meta plugin will pass the properties to device without checking
This commit is contained in:
Wang Wangwang
2023-04-10 15:42:24 +08:00
committed by GitHub
parent 48dee7c30a
commit 57684e28ff
5 changed files with 11 additions and 17 deletions

View File

@@ -1337,8 +1337,10 @@ ov::CoreImpl::CoreConfig::CacheConfig ov::CoreImpl::CoreConfig::get_cache_config
if (parsedConfig.count(ov::cache_dir.name())) {
auto cache_dir_val = parsedConfig.at(ov::cache_dir.name()).as<std::string>();
auto tempConfig = CoreConfig::CacheConfig::create(cache_dir_val);
// if plugin does not explicitly support cache_dir, we need to remove it from config
if (!util::contains(plugin.get_property(ov::supported_properties), ov::cache_dir)) {
// if plugin does not explicitly support cache_dir, and if plugin is not virtual, we need to remove
// it from config
if (!util::contains(plugin.get_property(ov::supported_properties), ov::cache_dir) &&
!is_virtual_device(plugin.get_name())) {
parsedConfig.erase(ov::cache_dir.name());
}
return tempConfig;