[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:
Wang, YangandRiver Li authored and GitHub committed 2022-10-10 08:42:43 +00:00
1 parent 94ef65f0bd
commit 457f606812
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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))));
}