Skip to content

Commit 8ece2be

Browse files
committed
tweak
1 parent 0bf8bb3 commit 8ece2be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ngclearn/components/synapses/hebbian/hebbianSynapse.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ def _calc_update(pre, post, W, w_bound, is_nonnegative=True, signVal=1., w_decay
4141
if w_bound > 0.:
4242
dW = dW * (w_bound - jnp.abs(W))
4343
if w_decay > 0.:
44-
dW = dW - jnp.matmul((1. - _pre).T, post) * w_decay
45-
#dW = dW - W * w_decay
44+
dW = dW - W * w_decay
4645
return dW * signVal, db * signVal
4746

4847
@partial(jit, static_argnums=[1,2])

0 commit comments

Comments
 (0)