[AUTO] fix Performance inefficiencies issue (#13273)
* fix Performance inefficiencies issue caused by previous PR. Signed-off-by: Wang, Yang <yang4.wang@intel.com> * Update. Signed-off-by: Wang, Yang <yang4.wang@intel.com> Signed-off-by: Wang, Yang <yang4.wang@intel.com> Co-authored-by: River Li <river.li@intel.com>
This commit is contained in:
parent
94ef65f0bd
commit
457f606812
@ -349,7 +349,7 @@ int main(int argc, char* argv[]) {
|
||||
std::stringstream strm(it_device_nstreams->second);
|
||||
std::map<std::string, std::string> devices_property;
|
||||
ov::util::Read<std::map<std::string, std::string>>{}(strm, devices_property);
|
||||
for (auto it : devices_property) {
|
||||
for (auto& it : devices_property) {
|
||||
device_config.insert(
|
||||
ov::device::properties(it.first, ov::num_streams(std::stoi(it.second))));
|
||||
}
|
||||
|
@ -534,7 +534,7 @@ IExecutableNetworkInternal::Ptr MultiDeviceInferencePlugin::LoadNetworkImpl(cons
|
||||
|
||||
// checking the perf counters config from the loaded network to respect both device's plugin and load-specific setting
|
||||
size_t num_plugins_supporting_perf_counters = 0;
|
||||
for (auto n : executableNetworkPerDevice) {
|
||||
for (auto& n : executableNetworkPerDevice) {
|
||||
try {
|
||||
num_plugins_supporting_perf_counters +=
|
||||
n.second->GetConfig(PluginConfigParams::KEY_PERF_COUNT).as<std::string>() ==
|
||||
|
Loading…
Reference in New Issue
Block a user