MultiSpike#

class sinabs.activation.MultiSpike(*args, **kwargs)[source]#

Autograd function that returns membrane potential integer-divided by spike threshold. Do not instantiate this class when passing as spike_fn (see example). Can be combined with different surrogate gradient functions.

Example

>>> layer = sinabs.layers.LIF(spike_fn=MultiSpike, ...)