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:
SNNCellEncodes 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