Bell/fix priority (#13667)

* debug only

Signed-off-by: fishbell <bell.song@intel.com>

* fix model priority with -d AUTO

Signed-off-by: fishbell <bell.song@intel.com>

* add tests

Signed-off-by: fishbell <bell.song@intel.com>

Signed-off-by: fishbell <bell.song@intel.com>
This commit is contained in:
yanlan song authored and GitHub committed 2022-10-28 04:58:25 +03:00
1 parent 694d2f73eb
commit 3f4c53a779
2 files changed
+9 -3

No files matched your search

+2
View File
@@ -131,6 +131,8 @@ std::vector<DeviceInformation> MultiDeviceInferencePlugin::ParseMetaDevices(cons
return "";
};
auto checkPriorityConfig = [&] (const std::string& priString) {
if (priString.empty())
return false;
std::string::size_type pos = 0;
std::string::size_type endpos = 0;
while ((endpos = priString.find(",", pos)) != std::string::npos) {