You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Steve via TVM Discuss <no...@discuss.tvm.ai> on 2020/06/05 03:18:34 UTC
[TVM Discuss] [Questions] Traversing Relay Graph order (source to
sink, sink to source)
@comaniac - are you assuming that user needs to extend from the ExprMutator class?
I have been mostly user of TVM, and now, I'd like to spend some time to understand relay.
How does this method differs from the post_order_visit function provided by TVM?
[quote="comaniac, post:3, topic:6720"]
```
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.
```
def visit(self, node):
// do something
super().visit(node)
```
[/quote]
---
[Visit Topic](https://discuss.tvm.ai/t/traversing-relay-graph-order-source-to-sink-sink-to-source/6720/4) 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/5878acc50f3064066de0f5b06b16b39fa7270942a529dc3d1a6613fd02b6cc67).