How to disable the spiking behaviour of LIF neurons associated with slayer.block.cuba.Conv and slayer.block.cuba.Dense so that the membrane voltage can be accumulated until reset is done without generating spikes(because if spike happen the voltage reset) #322
Replies: 4 comments 2 replies
-
To do this set the threshold of the neurons to zero, and then set graded_spike to true. Then apply a sum to the output of your network over the time dimension. So each time step your output neurons will always fire, but you will sum up their output over each timestep after the model has finished running. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. So, is it cumsum or sum over the time dimension ? |
Beta Was this translation helpful? Give feedback.
-
Thank you. I thought like if i set the current_decay to 1.0 then the input current/spike of the current time step will be almost zero at the next time step even though the current decay is governed as exp(-f(x)/beta. If we set current_decay to 1.0, at the next time step if the current can be decayed from 1.0 to 0.01 at least we can set the threshold to 0.01 instead zero. Again we loose something which are less than 0.01. |
Beta Was this translation helpful? Give feedback.
-
Hi, When i set the graded_spike to true, the program is hanging. Do you have any idea? Thanks . |
Beta Was this translation helpful? Give feedback.
-
Dear Experts,
How can i disable the spiking behaviour of LIF neurons associated with slayer.block.cuba.Dense and slayer.block.cuba.Conv blocks?
Because i want to accumulate the membrane voltage of output layer of the neural network until the neural network is reset for net input sample. During this period, the neurons of the output layers should not generate any spikes because if a spike is generated the membrane voltage is reset which is not desired for my case.
Thank you.
Thanks and Rgds,
Udayanga
Beta Was this translation helpful? Give feedback.
All reactions