Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Forward pass logic on snn.synaptic neuron fix #363

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

monkin77
Copy link

@monkin77 monkin77 commented Feb 2, 2025

Fix bugs in snn.Synaptic forward pass. Mentioned in issues #358 #350 #349.

  1. Synaptic Current was being assigned to the wrong variable (self.syn = self.mem)
  2. The reset mechanism was not referencing the neuron's membrane potential variable properly (using mem instead of self.mem)

Pull Request #360 also takes care of the first issue so I included the original commit here

ignaciogavier and others added 2 commits January 23, 2025 20:53
Fixed bug in forward method of Synaptic class when the argument syn is given.
@stevenabreu7
Copy link
Collaborator

stevenabreu7 commented Feb 4, 2025

this looks good to me, what do you think @jeshraghian (this fixes the NIR snnTorch conversion example)

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.

3 participants