Skip to content

Conversation

@gcunhase
Copy link
Contributor

@gcunhase gcunhase commented Nov 4, 2025

What does this PR do?

Type of change: Bug fix

Overview: Ensure nodes are topologically sorted in ONNX graph.

Usage

python -m modelopt.onnx.quantization --onnx_path=$MODEL_NAME.onnx

Testing

See bug 5591945, model 4.

Before your PR is "Ready for review"

  • Make sure you read and follow Contributor guidelines and your commits are signed.
  • Is this change backward compatible?: Yes
  • Did you write any new necessary tests?: No
  • Did you add or update any necessary documentation?: No
  • Did you update Changelog?: No

@gcunhase gcunhase requested a review from a team as a code owner November 4, 2025 17:11
@gcunhase gcunhase requested a review from i-riyad November 4, 2025 17:11
if intermediate_generated_files is not None:
intermediate_generated_files.append(ir_version_onnx_path)

# Ensure nodes are topologically sorted
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What operation(s) make the graph nodes "un-sorted"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants