Port PR 24018 to release/2023/3 (#24371)
### Details: - Port PR2418 to release 2023.3 - *...* ### Tickets: - *CVS-132745* Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
This commit is contained in:
parent
d3cb701018
commit
78b55038b5
|
|
@ -1353,11 +1353,9 @@ void ov::CoreImpl::set_property_for_device(const ov::AnyMap& configMap, const st
|
|||
{
|
||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||
if (device_supports_cache_dir(plugin.second)) {
|
||||
ov::AnyMap empty_map;
|
||||
auto cacheConfig = coreConfig.get_cache_config_for_device(plugin.second, empty_map);
|
||||
if (cacheConfig._cacheManager) {
|
||||
configCopy[ov::cache_dir.name()] = cacheConfig._cacheDir;
|
||||
}
|
||||
ov::AnyMap empty_map = {};
|
||||
configCopy[ov::cache_dir.name()] =
|
||||
coreConfig.get_cache_config_for_device(plugin.second, empty_map)._cacheDir;
|
||||
} else if (configCopy.count(ov::cache_dir.name()) > 0) {
|
||||
// Remove "CACHE_DIR" from config if it is not supported by plugin
|
||||
configCopy.erase(ov::cache_dir.name());
|
||||
|
|
|
|||
|
|
@ -664,7 +664,7 @@ void ov::proxy::tests::ProxyTests::register_plugin_support_subtract(ov::Core& co
|
|||
for (const auto& it : properties) {
|
||||
if (it.first == ov::enable_profiling.name())
|
||||
m_profiling = it.second.as<bool>();
|
||||
else if (it.first == ov::device::id.name())
|
||||
else if (it.first == ov::device::id.name() || it.first == ov::cache_dir.name())
|
||||
continue;
|
||||
else
|
||||
OPENVINO_THROW(get_device_name(), " set config: " + it.first);
|
||||
|
|
|
|||
Loading…
Reference in New Issue