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

Method _collect_function_names

python/tvm/relax/base_py_module.py:123–129  ·  view source on GitHub ↗

Collect names of TIR and Relax functions from IRModule.

(self)

Source from the content-addressed store, hash-verified

121 self._register_python_functions()
122
123 def _collect_function_names(self):
124 """Collect names of TIR and Relax functions from IRModule."""
125 for global_var, func in self.ir_mod.functions_items():
126 if isinstance(func, tirx.PrimFunc):
127 self.tir_func_names.append(global_var.name_hint)
128 elif isinstance(func, relax.Function):
129 self.relax_func_names.append(global_var.name_hint)
130
131 def _compile_functions(self):
132 """Compile TIR and Relax functions using JIT compilation."""

Callers 1

__init__Method · 0.95

Calls 2

functions_itemsMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected