Skip to content

Commit

Permalink
Update taichi_aot_based.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck authored Nov 3, 2023
1 parent a74accd commit 1cb0a5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions brainpy/_src/math/op_register/taichi_aot_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ def get_source_with_dependencies(func, visited=None):

dependent_funcs = re.findall(r'(\w+)\(', source)

# 递归地获取所有依赖的函数的源代码
for func_name in dependent_funcs:
# 使用 getattr 来从模块中获取函数
dependent_func = getattr(module, func_name, None)
if callable(dependent_func):
source += get_source_with_dependencies(dependent_func, visited)
Expand Down

0 comments on commit 1cb0a5b

Please sign in to comment.