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

Method visit_extern_func_

python/tvm/relax/testing/ast_printer.py:135–138  ·  view source on GitHub ↗
(self, op: relax.ExternFunc)

Source from the content-addressed store, hash-verified

133 )
134
135 def visit_extern_func_(self, op: relax.ExternFunc) -> str:
136 # ExternFunc does not inherit from relax.Expr either,
137 # so it doesn't have struct_info fields and we don't use build_expr
138 return self.build_ast_node("ExternFunc", global_symbol=wrap_quotes(op.global_symbol))
139
140 def visit_global_var_(self, op: relax.GlobalVar) -> str:
141 return self.build_expr(op, "GlobalVar", name_hint=wrap_quotes(op.name_hint))

Callers

nothing calls this directly

Calls 2

build_ast_nodeMethod · 0.95
wrap_quotesFunction · 0.85

Tested by

no test coverage detected