tqchen commented on a change in pull request #4886: [WIP][POC]First pass a defining at non-recursive Graph Vistor and Rewriter URL: https://github.com/apache/incubator-tvm/pull/4886#discussion_r401214283
########## File path: include/tvm/relay/expr_functor.h ########## @@ -232,6 +232,181 @@ class ExprMutator std::unordered_map<Expr, Expr, ObjectHash, ObjectEqual> memo_; }; +/*! + * \brief A wrapper around ExprVisitor which traverses the Dataflow Normal AST. + * + * DataflowVisitor treats Expr as dataflow graph, and visits in post-DFS order + * + * DataflowVisitor provides the same recursive API as ExprVisitor, and uses + * recursion to traverse most forms of the IR, but under the hood it expands nested dataflow regions + * of the graph and processes them iteratatively to prevent stack overflows + */ +class DataflowVisitor : public ::tvm::relay::ExprVisitor { Review comment: Shall we unify the naming convention of DataflowVisitor and ScopeMutator? Perhaps ScopeVisitor? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services