Skip to content

Commit 71e1308

Browse files
committed
fix the difference of constants in jit and nonjit mode
1 parent a2c399b commit 71e1308

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/others/citing.rst renamed to docs/others/publications.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11

22
If BrainPy has been significant in your research, and you would like to acknowledge
3-
the project in your academic publication, we suggest citing the following paper:
3+
the project in your academic publication, we suggest citing the following papers:
4+
5+
6+
7+
- Chaoming Wang, Xiaoyu Chen, Tianqiu Zhang, Si Wu. *BrainPy: a flexible, integrative, efficient, and extensible framework towards general-purpose brain dynamics programming*. In submission.
8+
49

510
- Wang, C., Jiang, Y., Liu, X., Lin, X., Zou, X., Ji, Z., & Wu, S. (2021, December). *A Just-In-Time Compilation Approach for Neural Dynamics Simulation*. In International Conference on Neural Information Processing (pp. 15-26). Springer, Cham.
611

7-
In BibTeX format:
812

913
.. code-block::
1014

extensions/brainpylib/custom_op/regis_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def eval_rule(*inputs, **info):
102102
outputs = tuple(np.zeros(shape.shape, dtype=shape.dtype) for shape in output_shapes)
103103
# convert inputs to a tuple
104104
inputs = tuple(np.asarray(arg) for arg in inputs)
105-
inputs += tuple(info.values())
105+
inputs += tuple(np.asarray(i) for i in info.values())
106106
# call the kernel
107107
cpu_func(outputs, inputs)
108108
# Return the outputs

0 commit comments

Comments
 (0)