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.
1 parent dba6ba0 commit 5f3106bCopy full SHA for 5f3106b
brainpy/connect/custom_conn.py
@@ -25,7 +25,7 @@ def __init__(self, conn_mat):
25
self.pre_num, self.post_num = conn_mat.shape
26
self.pre_size, self.post_size = (self.pre_num,), (self.post_num,)
27
28
- self.conn_mat = np.asarray(conn_mat, dtype=MAT_DTYPE)
+ self.conn_mat = np.asarray(conn_mat).astype(MAT_DTYPE)
29
30
def __call__(self, pre_size, post_size):
31
assert self.pre_num == tools.size2num(pre_size)
0 commit comments