Skip to content

Commit f6091f1

Browse files
committed
edit to lif
1 parent a45dbbd commit f6091f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngclearn/components/neurons/spiking/LIFCell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ def __init__(self, name, n_units, tau_m, resist_m=1., thr=-52., v_rest=-65.,
237237
self.n_units = n_units
238238

239239
## set up surrogate function for spike emission
240-
#self.spike_fx, self.d_spike_fx = arctan_estimator() #
241-
self.spike_fx, self.d_spike_fx = triangular_estimator() # straight_through_estimator()
240+
self.spike_fx, self.d_spike_fx = arctan_estimator() #
241+
#self.spike_fx, self.d_spike_fx = triangular_estimator() # straight_through_estimator()
242242

243243
## Compartment setup
244244
restVals = jnp.zeros((self.batch_size, self.n_units))

0 commit comments

Comments
 (0)