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

Method parse_macro

python/tvm/tirx/script/parser/entry.py:126–131  ·  view source on GitHub ↗
(self, parser: Parser)

Source from the content-addressed store, hash-verified

124 self.call_count = 0
125
126 def parse_macro(self, parser: Parser) -> None:
127 macro_def = self.get_macro_def()
128 suffix = f"_{self.call_count}" if self.call_count > 0 else ""
129 self.call_count += 1
130 with block_name_suffix_context(suffix):
131 parser.visit_body(macro_def.body)
132
133 def __call__(self, *args, **kwargs):
134 param_binding = inspect.signature(self.func).bind(*args, **kwargs)

Callers 1

__call__Method · 0.95

Calls 3

get_macro_defMethod · 0.80
visit_bodyMethod · 0.80

Tested by

no test coverage detected