Skip to content
Open
3 changes: 3 additions & 0 deletions onnxruntime/core/providers/openvino/ov_versions/capability.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ std::vector<std::unique_ptr<ComputeCapability>> GetCapability::Execute() {
bool append_node = false;
while (j < total_clusters && !append_node) {
j = j + 1;
if (j >= total_clusters) {
break;
}
append_node = AddTrivialClusterToNextClusterIfConnected(graph_viewer_, index, connected_clusters[j]);
}
if (append_node) {
Expand Down
Loading