Skip to content

Commit 4515c8c

Browse files
committed
update
1 parent 5481ec4 commit 4515c8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

brainpy/math/operators/op_register.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ def register_op(
132132
A jitable JAX function.
133133
"""
134134
_check_brainpylib(register_op.__name__)
135-
f = brainpylib.register_op(name,
136-
cpu_func=cpu_func,
137-
gpu_func_translation=gpu_func,
138-
out_shapes=eval_shape,
139-
apply_cpu_func_to_gpu=apply_cpu_func_to_gpu)
135+
f = brainpylib.register_op_with_numba(name,
136+
cpu_func=cpu_func,
137+
gpu_func_translation=gpu_func,
138+
out_shapes=eval_shape,
139+
apply_cpu_func_to_gpu=apply_cpu_func_to_gpu)
140140

141141
def fixed_op(*inputs, **info):
142142
inputs = tuple([i.value if isinstance(i, JaxArray) else i for i in inputs])

0 commit comments

Comments
 (0)