--topo_sorting_mode

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Specifies the traversal mode when you build 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

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.