MCPcopy Index your code
hub / github.com/apache/tvm / _dispatch

Function _dispatch

python/tvm/script/parser/core/parser.py:344–349  ·  view source on GitHub ↗
(self: "Parser", type_name: str)

Source from the content-addressed store, hash-verified

342
343
344def _dispatch(self: "Parser", type_name: str) -> dispatch.ParseMethod:
345 for token in [self.dispatch_tokens[-1], "default"]:
346 func = dispatch.get(token=token, type_name=type_name, default=None)
347 if func is not None:
348 return _dispatch_wrapper(func)
349 return _dispatch_wrapper(lambda self, node: self.generic_visit(node))
350
351
352class Parser(doc.NodeVisitor):

Callers 15

visit_tvm_annotationMethod · 0.70
visit_FunctionDefMethod · 0.70
visit_argumentsMethod · 0.70
visit_ForMethod · 0.70
visit_WhileMethod · 0.70
visit_WithMethod · 0.70
visit_AssignMethod · 0.70
visit_AnnAssignMethod · 0.70
visit_ExprMethod · 0.70
visit_IfMethod · 0.70
visit_AugAssignMethod · 0.70

Calls 3

_dispatch_wrapperFunction · 0.85
getMethod · 0.45
generic_visitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…