model.modules.current_encoder.ConstantCurrentLIFEncoderCell

model.modules.current_encoder.ConstantCurrentLIFEncoderCell#

class ConstantCurrentLIFEncoderCell(p: LIFParameters = (tensor(200.), tensor(100.), tensor(0.), tensor(1.), tensor(0.), 'super', tensor(100.)), **kwargs)[source]#

Bases: SNNCell

Encodes scalar input as a spike train using a leaky integrate-and-fire (LIF) neuron model

The input is interpreted as a constant presynaptic current. The cell integrates the input and emits a spike whenever the membrane potential crosses the threshold.

Initialize internal Module state, shared by both nn.Module and ScriptModule.

Methods

Attributes

training

initial_state(input_tensor: Tensor) LIFFeedForwardState[source]#