synsense / sinabs

A deep learning library for spiking neural networks which is based on PyTorch, focuses on fast training and supports inference on neuromorphic hardware.
https://sinabs.readthedocs.io
GNU Affero General Public License v3.0
80 stars 8 forks source link

SNNAnalyzer considers any stateful layer as spiking layer #99

Closed bauerfe closed 1 year ago

bauerfe commented 1 year ago

The problem is in this line, which registers a spiking hook to any StatefulLayer, without checking whether it spikes. This, for instance, may include an ExpLeak layer, which can result in negative "firing rates" and other unexpected data being recorded.