Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refactor] Remove PyTaichi.compiled_functions (taichi-dev#7867)
Issue: taichi-dev#7002 ### Brief Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 5923f65</samp> Refactor compiled function management for kernels in `PyTaichi`. Use `compiled_kernels` attribute of each kernel instead of `compiled_functions` attribute of `PyTaichi`. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖 Generated by Copilot at 5923f65</samp> * Remove the `compiled_functions` attribute from the `PyTaichi` class and use the `compiled_kernels` attribute of each kernel instead ([link](https://github.com/taichi-dev/taichi/pull/7867/files?diff=unified&w=0#diff-99744c5ae5f6a754d6f68408fdc64fb0d6097216518a7f3d1ef43ffe12599577L316)) * Update the `clear_compiled_functions` method of the `PyTaichi` class to clear the `compiled_kernels` attribute of each kernel ([link](https://github.com/taichi-dev/taichi/pull/7867/files?diff=unified&w=0#diff-99744c5ae5f6a754d6f68408fdc64fb0d6097216518a7f3d1ef43ffe12599577L339-R339)) * Update the `get_num_compiled_functions` method of the `PyTaichi` class to sum up the lengths of the `compiled_kernels` attribute of each kernel ([link](https://github.com/taichi-dev/taichi/pull/7867/files?diff=unified&w=0#diff-99744c5ae5f6a754d6f68408fdc64fb0d6097216518a7f3d1ef43ffe12599577L354-R357)) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information