Source code of snntorch.Synaptic seems to have a mistake? #229
Unanswered
cheese-leopard
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @be-Berserker , could you open an Issue for that? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found that there seems to have a problem with the source code of snntorch's synaptic class. In the following colab link, https://colab.research.google.com/drive/1ntRpP9q-oTeHvkY6TmcfjZ_DUwHzGIR_?usp=sharing
I created a synaptic neuron with init_ Hidden=false and true respectively, but their outputs are different. When init_ hidden=true, synaptic neuron output is the same as leaky neuron output. I think it might be a code error in snntorch/_neurons/Synaptic.py Line 271
def_ Base_ State_ Function_ Hidden (self, input_):
base_ fn_ Syn = self.alpha.clamp (0, 1) * self.syn + input_
base_ fn_ MEM = self.beta.clamp (0, 1) * self.mem + input_
Return base_ FN_ Syn, base_ FN_ MEM
second input_ Should be corrected to base_ fn_ Syn
Beta Was this translation helpful? Give feedback.
All reactions