iCGY96 / syops-counter

SyOPs counter for spiking neural networks
MIT License
47 stars 7 forks source link

A possible bug in ops.py #4

Open yult0821 opened 1 year ago

yult0821 commented 1 year ago

When calculating firing rate for the spiking neurons, spike, rate = spike_rate(output[0]) was used. However, output is actually a torch.tensor, not a tuple, therefore this only takes spikes of the first time step into account, which I think is not correct. Adding an if-statement if isinstance(output, tuple) may solve this problem.