Skip to content

Commit 160c314

Browse files
committed
fix debug build unused param
1 parent 3d1295b commit 160c314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/core/providers/openvino/qdq_transformations/qdq_stripping.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static bool IsConnectedQAConstantInitializer(const Node* dq_node, const onnxrunt
205205

206206
// Check required because in some cases, when a NodeUnit cannot be formed with this standalone DQ
207207
// we still need to check if it feeds into a supported Op
208-
static bool DQFeedsASupportedOp(const Node* dq_node, const onnxruntime::GraphViewer& src_graph) {
208+
static bool DQFeedsASupportedOp(const Node* dq_node) {
209209
if (!dq_node->GetOutputEdgesCount()) return false; // Only feeds the graph output, and not any node
210210

211211
const auto& target_node = *dq_node->OutputNodesBegin();
@@ -469,7 +469,7 @@ static void AddStandaloneNodeUnit(onnxruntime::Graph& dst_graph, const onnxrunti
469469
add_identity_op(true);
470470
else if (IsConnectedQPresent(src_graph, dst_graph.Nodes(), &node_unit.GetNode(), node_unit.GetNode().InputDefs()))
471471
AddNode(initializers_to_keep, src_graph, dst_graph, node_unit.GetNode());
472-
else if (DQFeedsASupportedOp(&node_unit.GetNode(), src_graph))
472+
else if (DQFeedsASupportedOp(&node_unit.GetNode()))
473473
AddNode(initializers_to_keep, src_graph, dst_graph, node_unit.GetNode());
474474
else
475475
add_identity_op(false);

0 commit comments

Comments
 (0)