From 1cb0a5ba0cd4c7c631d2733482685d46eff64f1b Mon Sep 17 00:00:00 2001 From: Sichao He <1310722434@qq.com> Date: Fri, 3 Nov 2023 12:47:54 +0800 Subject: [PATCH] Update taichi_aot_based.py --- brainpy/_src/math/op_register/taichi_aot_based.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/brainpy/_src/math/op_register/taichi_aot_based.py b/brainpy/_src/math/op_register/taichi_aot_based.py index b9d6d4e92..c846ebf9c 100644 --- a/brainpy/_src/math/op_register/taichi_aot_based.py +++ b/brainpy/_src/math/op_register/taichi_aot_based.py @@ -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)