Skip to content

Conversation

@rG223
Copy link

@rG223 rG223 commented Dec 6, 2025

Hi, I found an issue in tutorial 6.

  def forward(self, input_, mem):
    spk = self.surrogate_func((mem-self.threshold))  # call the Heaviside function
    reset = (spk - self.threshold).detach()
    mem = self.beta * mem + input_ - reset
    return spk, mem

The reset computation is incorrect, and it should be reset = (spk * self.threshold).detach().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant