diff --git a/onnxruntime/core/optimizer/qdq_transformer/qdq_propagation.cc b/onnxruntime/core/optimizer/qdq_transformer/qdq_propagation.cc index dbfa2e86830c8..d676bd8170eb3 100644 --- a/onnxruntime/core/optimizer/qdq_transformer/qdq_propagation.cc +++ b/onnxruntime/core/optimizer/qdq_transformer/qdq_propagation.cc @@ -7,6 +7,7 @@ #include #include #include +#include #include "core/common/inlined_containers_fwd.h" #include "core/graph/extended_graph_edge.h" @@ -75,7 +76,8 @@ Status ValidateQDQInsertionEdges(Graph& graph, gsl::spannode_idx == edge_src_info->node_idx && src_info->arg_idx == edge_src_info->arg_idx)), + (src_info->node_idx == edge_src_info->node_idx && + src_info->arg_idx == edge_src_info->arg_idx)), "Expect all insertion edges to come from the same source node's output slot."); const Node* edge_dst_node = insertion_edge.GetNodeAtEnd(graph, ExtendedGraphEdge::End::Destination);