From 4d82fa7a15bb0b114d9af8d9d8f5a8a9f73db770 Mon Sep 17 00:00:00 2001 From: saurabhkale17 Date: Mon, 5 Aug 2024 11:28:54 -0700 Subject: [PATCH 1/2] Fix mutiple Qnodes --- .../providers/openvino/qdq_transformations/qdq_stripping.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc b/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc index fca681082ef0b..ff88ef9b6f374 100644 --- a/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc +++ b/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc @@ -584,7 +584,7 @@ static void AddQDQNodeUnit(onnxruntime::Graph& dst_graph, // Handle Qs in the NodeUnit if (!node_unit.GetQNodes().empty()) { for (auto i = 0 ; i < node_unit.GetQNodes().size() ; i++) { - const auto& q_node = node_unit.GetQNodes().at(0); + const auto& q_node = node_unit.GetQNodes().at(i); SkipReason reason; From 0e5aa49ce4963ebbd87c96596d23a20dfe626bfe Mon Sep 17 00:00:00 2001 From: saurabhkale17 Date: Mon, 5 Aug 2024 19:06:35 -0700 Subject: [PATCH 2/2] fix debug build --- .../providers/openvino/qdq_transformations/qdq_stripping.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc b/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc index ff88ef9b6f374..b1e4c395b9daa 100644 --- a/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc +++ b/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc @@ -583,7 +583,7 @@ static void AddQDQNodeUnit(onnxruntime::Graph& dst_graph, // Handle Qs in the NodeUnit if (!node_unit.GetQNodes().empty()) { - for (auto i = 0 ; i < node_unit.GetQNodes().size() ; i++) { + for (size_t i = 0 ; i < node_unit.GetQNodes().size() ; i++) { const auto& q_node = node_unit.GetQNodes().at(i); SkipReason reason;