MCPcopy Create free account
hub / github.com/apache/tvm / visit_function_

Method visit_function_

tests/python/relax/test_expr_functor.py:109–116  ·  view source on GitHub ↗
(self, op: Function)

Source from the content-addressed store, hash-verified

107 self.log.add("DataflowVar")
108
109 def visit_function_(self, op: Function) -> None:
110 self.log.add("Function")
111 self.log.push_scope()
112 for param in op.params:
113 self.visit_var_def(param)
114
115 self.visit_expr(op.body)
116 self.log.pop_scope()
117
118 def visit_call_(self, op: Call) -> None:
119 self.log.add("Call")

Callers

nothing calls this directly

Calls 5

visit_exprMethod · 0.95
addMethod · 0.45
push_scopeMethod · 0.45
visit_var_defMethod · 0.45
pop_scopeMethod · 0.45

Tested by

no test coverage detected