Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Jan 17, 2024
1 parent 9e7a733 commit 576e9c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brainpy/_src/math/op_register/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from .numba_approach import (CustomOpByNumba,
register_op_with_numba,
compile_cpu_signature_with_numba)
from .taichi_aot_based import clean_caches
from .taichi_aot_based import clean_caches, check_kernels_count
from .base import XLACustomOp
from .utils import register_general_batching
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import brainpy.math as bm

bm.clean_caches()
print(bm.check_kernels_count())

bm.clean_caches()

print(bm.check_kernels_count())
1 change: 1 addition & 0 deletions brainpy/math/op_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
CustomOpByNumba,
compile_cpu_signature_with_numba,
clean_caches,
check_kernels_count,
)

from brainpy._src.math.op_register.base import XLACustomOp
Expand Down

0 comments on commit 576e9c9

Please sign in to comment.