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

Method visit_AnnAssign

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

The general annotated assign visiting method. Parameters ---------- node : doc.Assign The doc AST annotated assign node. Returns ------- res : Any The visiting result.

(self, node: doc.AnnAssign)

Source from the content-addressed store, hash-verified

817 return _dispatch(self, "Assign")(self, node)
818
819 def visit_AnnAssign(self, node: doc.AnnAssign) -> Any: # pylint: disable=invalid-name
820 """The general annotated assign visiting method.
821
822 Parameters
823 ----------
824 node : doc.Assign
825 The doc AST annotated assign node.
826
827 Returns
828 -------
829 res : Any
830 The visiting result.
831 """
832 return _dispatch(self, "AnnAssign")(self, node)
833
834 def visit_Expr(self, node: doc.Expr) -> Any: # pylint: disable=invalid-name
835 """The general expression visiting method.

Callers

nothing calls this directly

Calls 1

_dispatchFunction · 0.70

Tested by

no test coverage detected