Skip to content

Commit 0a3fd29

Browse files
committed
Minor fix
Signed-off-by: Riyad Islam <[email protected]>
1 parent 0697b6f commit 0a3fd29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modelopt/onnx/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,8 @@ def remove_node_training_mode(onnx_model: onnx.ModelProto, node_op_type: str) ->
779779
removed_output_names.update(node.output[1:])
780780
node.output[:] = node.output[:1]
781781

782-
# Clean up corresponding value_info entries
783782
if removed_output_names:
783+
# Clean up corresponding value_info entries
784784
keep = [vi for vi in onnx_model.graph.value_info if vi.name not in removed_output_names]
785785
del onnx_model.graph.value_info[:]
786786
onnx_model.graph.value_info.extend(keep)

0 commit comments

Comments
 (0)