Skip to content

Commit

Permalink
edit to lif
Browse files Browse the repository at this point in the history
  • Loading branch information
ago109 committed Jul 1, 2024
1 parent a45dbbd commit f6091f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngclearn/components/neurons/spiking/LIFCell.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def __init__(self, name, n_units, tau_m, resist_m=1., thr=-52., v_rest=-65.,
self.n_units = n_units

## set up surrogate function for spike emission
#self.spike_fx, self.d_spike_fx = arctan_estimator() #
self.spike_fx, self.d_spike_fx = triangular_estimator() # straight_through_estimator()
self.spike_fx, self.d_spike_fx = arctan_estimator() #
#self.spike_fx, self.d_spike_fx = triangular_estimator() # straight_through_estimator()

## Compartment setup
restVals = jnp.zeros((self.batch_size, self.n_units))
Expand Down

0 comments on commit f6091f1

Please sign in to comment.