From 8a1c2a868692b74450b5add306783447ed6e61f4 Mon Sep 17 00:00:00 2001 From: saurabhkale17 Date: Tue, 18 Jun 2024 04:16:35 -0700 Subject: [PATCH 1/2] fix standalone dq conversion --- .../providers/openvino/qdq_transformations/qdq_stripping.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc b/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc index c7689a0be7e73..49f503ff2b278 100644 --- a/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc +++ b/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc @@ -219,8 +219,8 @@ static bool DQFeedsASupportedOp(const Node* dq_node, const onnxruntime::GraphVie return true; } } else if (op_type == "Add") { - // Add keeps all DQs except if it has const inits - return !IsAnyDQAConstantInitializer(&target_node, src_graph); + // Add => keeps all DQs + return true } return false; } From 33c92b8239726dc4e3777a8d2a6c379e2b0720f3 Mon Sep 17 00:00:00 2001 From: saurabhkale17 Date: Tue, 18 Jun 2024 06:25:52 -0700 Subject: [PATCH 2/2] fix standalone dq conversion --- .../providers/openvino/qdq_transformations/qdq_stripping.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc b/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc index 49f503ff2b278..ef65424df87b9 100644 --- a/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc +++ b/onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc @@ -219,8 +219,8 @@ static bool DQFeedsASupportedOp(const Node* dq_node, const onnxruntime::GraphVie return true; } } else if (op_type == "Add") { - // Add => keeps all DQs - return true + // Add => keeps all DQs + return true; } return false; }