From f8cb77ad724fddcbba43f3043e6682d29833c013 Mon Sep 17 00:00:00 2001 From: Adrian Lizarraga Date: Tue, 24 Sep 2024 16:26:31 -0700 Subject: [PATCH] Update onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc Co-authored-by: Scott McKay --- .../transpose_optimization/onnx_transpose_optimization.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc b/onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc index 06f8062e5b951..470838d36ec1c 100644 --- a/onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc +++ b/onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc @@ -2826,7 +2826,7 @@ static bool TryRemoveEmptyDQQ(OptimizerCtx& ctx, api::NodeRef& q_node) { return false; } - // Move Q's output to come out of DQ's parent node instead. + // Move Q's output to come out of DQ's parent node so the graph output value name is maintained. dq_node.SetInput(0, ""); // Disconnect DQ from its parent first. ctx.graph.MoveOutput(q_node, 0, *dq_parent_node, dq_parent_output_index);