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

Method visit_tvm_declare_function

python/tvm/script/parser/core/parser.py:721–724  ·  view source on GitHub ↗
(self, node: doc.FunctionDef)

Source from the content-addressed store, hash-verified

719 _dispatch(self, "post_visit_local_function")(self, node)
720
721 def visit_tvm_declare_function(self, node: doc.FunctionDef) -> GlobalVar:
722 token = self.get_dispatch_token(node)
723 with self.with_dispatch_token(token):
724 return _dispatch(self, "tvm_declare_function")(self, node)
725
726 def visit_ClassDef(self, node: doc.ClassDef) -> Any: # pylint: disable=invalid-name
727 """The general class definition visiting method.

Callers 1

_visit_class_defFunction · 0.80

Calls 3

get_dispatch_tokenMethod · 0.95
with_dispatch_tokenMethod · 0.95
_dispatchFunction · 0.70

Tested by

no test coverage detected