Skip to content

Commit

Permalink
[VPU]Fix for crash in Myriad plugin during LoadNetwork with Hetero pl…
Browse files Browse the repository at this point in the history
…ugin
  • Loading branch information
Polina committed May 5, 2021
1 parent 29a8be5 commit 042abce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions inference-engine/src/vpu/common/src/ngraph/query_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 042abce

Please sign in to comment.