--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

Atlas 200/300/500 Inference Product

Atlas Training Series Product

Restrictions

If the custom repository path is loaded during model conversion, the change of the graph traversal mode may affect the tuning result. You are advised to perform tuning again. For details, see AOE Instructions.