jeshraghian / snntorch

Deep and online learning with spiking neural networks in Python
https://snntorch.readthedocs.io/en/latest/
MIT License
1.17k stars 202 forks source link

Tutorial 4 - Synaptic current and potential go to +inf #338

Open jmrfox opened 4 days ago

jmrfox commented 4 days ago

Description

I ran the first few code blocks in Tutorial 4 "2nd Order Spiking Neuron Models". At the part where we step through the Synaptic simulation and record the synaptic current and potential, these values go off to + infinity. This is labeled section 1.2 in the notebook.

I haven't looked closely enough to see what the problem is, just that it is blowing up. Could I be doing something wrong?

What I Did

I ran the code as it exists in examples/tutorial_4_advanced_neurons.ipynb on Google Colab, so it should be reproducible.