Both orders can be implemented using post_order_visit.

Postorder. In this case the first node that processes "do something" would be 
the source node in a DAG.

```python
def visit(self, node):
   super().visit(node)
   // do something
```

Preorder. In this case the first node that processes "do something" would be 
the last node in a DAG.

```python
def visit(self, node):
   // do something
   super().visit(node)
```





---
[Visit 
Topic](https://discuss.tvm.ai/t/traversing-relay-graph-order-source-to-sink-sink-to-source/6720/3)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/21fe69fe4d7cebb25bc02d6120816e3ba91190549c7f718e56743e87af624a7d).

Reply via email to