genn-team / ml_genn

A library for deep learning with Spiking Neural Networks (SNN).
https://ml-genn.readthedocs.io
GNU Lesser General Public License v2.1
24 stars 7 forks source link

When training with EventProp, should run an extra forward pass #101

Open neworderofjamie opened 3 months ago

neworderofjamie commented 3 months ago

Because the forward pass for batch b is run simultaneously with the backward pass for batch b - 1 we should run an extra empty forward pass so all backward passes get calculated. For large classification tasks, this probably doesn't matter but e.g. for the original implementation of the pattern recognition regression task with 1 batch per epoch, it prevents learning.