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

Function visit

tests/python/relax/test_expr_functor.py:353–357  ·  view source on GitHub ↗
(f, expr)

Source from the content-addressed store, hash-verified

351
352def basic_check(expr, visitor_str, mutator_str):
353 def visit(f, expr):
354 if isinstance(expr, relax.Expr):
355 return f.visit_expr(expr)
356 elif isinstance(expr, relax.BindingBlock):
357 return f.visit_binding_block(expr)
358
359 # check no overloading case
360 basic_visitor = BasicVisitor()

Callers 1

basic_checkFunction · 0.70

Calls 2

visit_exprMethod · 0.45
visit_binding_blockMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…