--topo_sorting_mode
Description
Specifies the traversal mode when you compile operators in graph mode.
See Also
None
Argument
- 0: Breadth First Search (BFS), a type of search algorithm. Similar to DFS, it starts from a given state and explores all reachable states. The difference between BFS and DFS is that BFS traverses all nodes level by level.
- 1 (default): Depth First Search (DFS), a type of search algorithm. It starts from a given state and continuously transitions to other states until no more transitions are possible. It then rolls back to the previous state and continues to explore other states. This process is repeated until the final solution is found.
- 2: Reverse DFS (RDFS).
- 3: Stable RDFS. For existing operators in the graph, the computation sequence is not changed. For new operators in the graph, RDFS is used.
Suggestions and Benefits
None
Example
--topo_sorting_mode=3
Applicability
Parent topic: Model Tuning Options