Commit 89c686c
authored
[5591945][5589019@13][ONNX] Fix 'nodes not sorted' failure (#507)
## What does this PR do?
**Type of change:** Bug fix
**Overview:** Ensure nodes are topologically sorted in ONNX graph.
## Usage
```python
python -m modelopt.onnx.quantization --onnx_path=$MODEL_NAME.onnx
```
## Testing
See bug 5591945 (model 4) and 5589019@13.
## Before your PR is "*Ready for review*"
<!-- If you haven't finished some of the above items you can still open
`Draft` PR. -->
- **Make sure you read and follow [Contributor
guidelines](https://github.com/NVIDIA/TensorRT-Model-Optimizer/blob/main/CONTRIBUTING.md)**
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](https://github.com/NVIDIA/TensorRT-Model-Optimizer/blob/main/CHANGELOG.rst)?**:
No
---------
Signed-off-by: gcunhase <4861122+gcunhase@users.noreply.github.com>1 parent 017c11b commit 89c686c
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
324 | 329 | | |
325 | 330 | | |
326 | 331 | | |
| |||
0 commit comments