MCPcopy Create free account
hub / github.com/apache/tvm / is_recursive

Function is_recursive

python/tvm/relax/script/parser/parser.py:148–153  ·  view source on GitHub ↗
(node: doc.FunctionDef)

Source from the content-addressed store, hash-verified

146
147
148def is_recursive(node: doc.FunctionDef) -> bool:
149 # Check if it is a recursive function
150 for stmt in node.body:
151 if is_called(stmt, node.name):
152 return True
153 return False
154
155
156def collect_symbolic_var_from_prelude(

Callers 1

visit_function_defFunction · 0.85

Calls 1

is_calledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…