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.
brainpy.connect.FixedProb
1 parent d85f02a commit 4b0d0f3Copy full SHA for 4b0d0f3
brainpy/_src/connect/random_conn.py
@@ -131,7 +131,7 @@ def build_mat(self):
131
mat = (self._jaxrand.uniform(size=(self.pre_num, self.post_num)) < self.prob) * pre_state
132
mat = bm.asarray(mat)
133
if not self.include_self:
134
- mat = bm.fill_diagonal(mat, False)
+ bm.fill_diagonal(mat, False)
135
return mat.astype(MAT_DTYPE)
136
137
0 commit comments