Collect names of TIR and Relax functions from IRModule.
(self)
| 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.""" |
no test coverage detected