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

Method __init__

python/tvm/script/parser/core/parser.py:376–385  ·  view source on GitHub ↗
(
        self,
        source: Source,
        function_annotations: dict[str, dict[str, Any]],
    )

Source from the content-addressed store, hash-verified

374 base_py_module_context: bool = False # whether current class inherits from BasePyModule
375
376 def __init__(
377 self,
378 source: Source,
379 function_annotations: dict[str, dict[str, Any]],
380 ) -> None:
381 self.diag = Diagnostics(source)
382 self.dispatch_tokens = ["default"]
383 self.function_annotations = function_annotations
384 self.var_table = VarTable()
385 self.inside_function = False
386
387 def parse(self, extra_vars: dict[str, Any] | None = None) -> Any:
388 """The main parse method for parser.

Callers

nothing calls this directly

Calls 2

DiagnosticsClass · 0.85
VarTableClass · 0.85

Tested by

no test coverage detected