MembraneReset#
- class sinabs.activation.MembraneReset(reset_value: float = 0.0)[source]#
Reset the membrane potential v_mem to a given value after it spiked.
- Parameters:
reset_value (float) – fixed value that a neuron should be reset to. Defaults to zero.
Example
>>> layer = sinabs.layers.LIF(reset_fn=MembraneReset(reset_value=0.), ...)