Skip to content

Commit 061de39

Browse files
committed
fix DiffusiveCoupling bug
1 parent c6df4c3 commit 061de39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainpy/_src/dyn/synapses/delay_couplings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def update(self, tdi):
206206
indices = (jnp.arange(self.coupling_var1.size),)
207207
f = vmap(lambda steps: delay_var(steps, *indices), in_axes=1) # (..., pre.num)
208208
delays = f(self.delay_steps) # (..., post.num, pre.num)
209-
diffusive = (jnp.moveaxis(delays.value, axis - 1, axis) -
209+
diffusive = (jnp.moveaxis(bm.as_jax(delays), axis - 1, axis) -
210210
jnp.expand_dims(self.coupling_var2.value, axis=axis - 1)) # (..., pre.num, post.num)
211211
diffusive = (self.conn_mat * diffusive).sum(axis=axis - 1)
212212
elif self.delay_type == 'int':

0 commit comments

Comments
 (0)