We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parameter()
1 parent c12d316 commit 32175b2Copy full SHA for 32175b2
brainpy/__init__.py
@@ -1,6 +1,6 @@
1
# -*- coding: utf-8 -*-
2
3
-__version__ = "2.2.3.4"
+__version__ = "2.2.3.5"
4
5
6
try:
brainpy/initialize/generic.py
@@ -75,7 +75,7 @@ def parameter(
75
else:
76
raise ValueError(f'Unknown param type {type(param)}: {param}')
77
if allow_scalar:
78
- if param.shape == () or param.shape != (1,):
+ if param.shape == () or param.shape == (1,):
79
return param
80
if param.shape != size:
81
raise ValueError(f'The shape of the parameters should be {size}, but we got {param.shape}')
0 commit comments