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

Method visit_if_

tests/python/relax/test_expr_functor.py:127–133  ·  view source on GitHub ↗
(self, op: If)

Source from the content-addressed store, hash-verified

125 self.log.pop_scope()
126
127 def visit_if_(self, op: If) -> None:
128 self.log.add("If")
129 self.log.push_scope()
130 self.visit_expr(op.cond)
131 self.visit_expr(op.true_branch)
132 self.visit_expr(op.false_branch)
133 self.log.pop_scope()
134
135 def visit_op_(self, op: Op) -> None:
136 self.log.add("Op")

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected