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

Function scan_macro

python/tvm/script/parser/core/entry.py:68–73  ·  view source on GitHub ↗

Generate the AST, and the source code for __repr__.

(program: Any | str, extra_vars: dict[str, Any] | None = None)

Source from the content-addressed store, hash-verified

66
67
68def scan_macro(program: Any | str, extra_vars: dict[str, Any] | None = None) -> Any:
69 """Generate the AST, and the source code for __repr__."""
70 # The AST will be converted into TIR at the time of expansion.
71 source = Source(program)
72 closure_vars = extra_vars or _default_globals()
73 return source, closure_vars
74
75
76def parse(

Callers 2

_decoratorFunction · 0.90
_decoratorFunction · 0.85

Calls 2

SourceClass · 0.85
_default_globalsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…