Small refactoring
This commit is contained in:
parent
3d5badce3c
commit
5ec67f3aa9
@ -62,9 +62,8 @@ ov::hetero::Plugin::DeviceProperties ov::hetero::Plugin::get_properties_per_devi
|
||||
DeviceProperties device_properties;
|
||||
for (const auto& device_name : device_names) {
|
||||
auto properties_it = device_properties.find(device_name);
|
||||
if (device_properties.end() == properties_it) {
|
||||
if (device_properties.end() == properties_it)
|
||||
device_properties[device_name] = get_core()->get_supported_property(device_name, properties);
|
||||
}
|
||||
}
|
||||
return device_properties;
|
||||
}
|
||||
@ -90,11 +89,9 @@ ov::SupportedOpsMap ov::hetero::Plugin::query_model(const std::shared_ptr<const
|
||||
auto device_names = ov::DeviceIDParser::get_hetero_devices(full_config.device_priorities);
|
||||
|
||||
ov::SupportedOpsMap res;
|
||||
for (const auto& device_name : device_names) {
|
||||
for (auto&& layer_query_result : query_results[device_name]) {
|
||||
for (const auto& device_name : device_names)
|
||||
for (const auto& layer_query_result : query_results[device_name])
|
||||
res.emplace(layer_query_result);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user