We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2377c4 commit 9f0e385Copy full SHA for 9f0e385
tf2onnx/tfonnx.py
@@ -2477,7 +2477,9 @@ def topological_sort(g, continue_on_error):
2477
2478
def run_rewriters(g, funcs, continue_on_error):
2479
"""Rewrite the original graph and body graphs of nodes"""
2480
- # NOTE: not topologically sort graph here
+ # NOTE(wayuanho):
2481
+ # 1. we don't sort graph here, rewriter is expected to do it on its own.
2482
+ # 2. the graph here may have circles, current topological_sort cannot handle it.
2483
for func in funcs:
2484
try:
2485
ops = func(g, g.get_nodes())
0 commit comments