MaxSpike
MaxSpike#
- class sinabs.activation.MaxSpike(max_num_spikes_per_bin: Optional[int] = None)[source]#
Wrapper for MaxSpikeInner autograd function. This class needs to be instantiated when used as spike_fn. Notice the difference in example to Single/MultiSpike.
Example
>>> layer = sinabs.layers.LIF(spike_fn=MaxSpike(max_num_spikes_per_bin=10), ...)
- __eq__(other)#
Return self==value.
- __hash__ = None#
- __init__(max_num_spikes_per_bin: Optional[int] = None) None #
- __repr__()#
Return repr(self).
- __weakref__#
list of weak references to the object (if defined)