Skip to content

Commit 644e232

Browse files
committed
Commit a fix for cluster index len
1 parent c489087 commit 644e232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/core/providers/openvino/ov_versions/capability.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ std::vector<std::unique_ptr<ComputeCapability>> GetCapability::Execute() {
170170
for (auto this_cluster : connected_clusters) {
171171
bool omit_subgraph = false;
172172

173-
auto id = this_cluster.at(0);
173+
//auto id = this_cluster.at(0);
174174
if (this_cluster.size() == 1) {
175175
//check next cluster
176176
auto index = this_cluster.at(0);
177177
if (graph_viewer_.GetNode(index)->OpType() == "EPContext") {
178178
omit_subgraph=false;
179-
} else if(cluster_index < this_cluster.size()-1) {
179+
} else if(cluster_index < connected_clusters.size()-1) {
180180
bool append_node = AddTrivialClusterToNextClusterIfConnected(graph_viewer_, index, connected_clusters[cluster_index+1]);
181181
if(append_node) {
182182
connected_clusters[cluster_index+1].emplace_back(index);

0 commit comments

Comments
 (0)