Skip to content

Commit

Permalink
add the SimpleBaseNode
Browse files Browse the repository at this point in the history
  • Loading branch information
fangwei123456 committed Dec 4, 2023
1 parent ec09d18 commit 6fbee6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spikingjelly/activation_based/neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ def neuronal_reset(self, spike):

if self.v_reset is None:
# soft reset
self.v = self.jit_soft_reset(self.v, spike_d, self.v_threshold)
self.v = self.v - self.v_threshold * spike_d

else:
# hard reset
self.v = self.jit_hard_reset(self.v, spike_d, self.v_reset)
self.v = spike_d * self.v_reset + (1. - spike_d) * self.v



Expand Down

0 comments on commit 6fbee6e

Please sign in to comment.