[IE][VPU]: Fix for crash in Myriad plugin during LoadNetwork with Hetero plugin (#5222)

This commit is contained in:
Polina Brzezinskaya 2021-05-06 14:47:10 +03:00 committed by GitHub
parent 5bd6343ce5
commit a411af1668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,13 +66,11 @@ InferenceEngine::QueryNetworkResult getQueryNetwork(const InferenceEngine::CNNNe
}
}
for (const auto& layerName : supported) {
for (const auto& layerName : unsupported) {
if (supported.empty()) {
break;
}
if (InferenceEngine::details::contains(unsupported, layerName)) {
supported.erase(layerName);
}
supported.erase(layerName);
}
unsupported.clear();