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

Method visit_body

python/tvm/script/parser/core/parser.py:669–683  ·  view source on GitHub ↗

The general body visiting method. Parameters ---------- node : List[doc.stmt] The list of statements in body. Returns ------- res : Any The visiting result.

(self, node: list[doc.stmt])

Source from the content-addressed store, hash-verified

667 self.report_error(node, err)
668
669 def visit_body(self, node: list[doc.stmt]) -> Any:
670 """The general body visiting method.
671
672 Parameters
673 ----------
674 node : List[doc.stmt]
675 The list of statements in body.
676
677 Returns
678 -------
679 res : Any
680 The visiting result.
681 """
682 for stmt in node:
683 self.visit(stmt)
684
685 def visit_tvm_annotation(self, node: doc.expr) -> Any:
686 """The general TVM annotation visiting method.

Callers 9

visit_function_defFunction · 0.80
visit_ifFunction · 0.80
visit_forFunction · 0.80
visit_whileFunction · 0.80
visit_withFunction · 0.80
visit_function_defFunction · 0.80
visit_ifFunction · 0.80
parse_macroMethod · 0.80
parse_macroMethod · 0.80

Calls 1

visitMethod · 0.95

Tested by

no test coverage detected