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

Method visit_if_

python/tvm/relax/testing/ast_printer.py:201–208  ·  view source on GitHub ↗
(self, op: relax.If)

Source from the content-addressed store, hash-verified

199 )
200
201 def visit_if_(self, op: relax.If) -> str:
202 return self.build_expr(
203 op,
204 "If",
205 cond=self.visit_expr(op.cond),
206 true_branch=self.visit_expr(op.true_branch),
207 false_branch=self.visit_expr(op.false_branch),
208 )
209
210 def visit_prim_value_(self, op: relax.PrimValue) -> str:
211 return self.build_expr(op, "PrimValue", value=self.visit_prim_expr_(op.value))

Callers

nothing calls this directly

Calls 2

build_exprMethod · 0.95
visit_exprMethod · 0.95

Tested by

no test coverage detected