syops-counter icon indicating copy to clipboard operation
syops-counter copied to clipboard

A possible bug in ops.py

Open yult0821 opened this issue 1 year ago • 0 comments

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.

yult0821 avatar Apr 20 '23 03:04 yult0821