norse.torch.functional.lif_ex_current_encoder#
- norse.torch.functional.lif_ex_current_encoder(input_current: Tensor, voltage: Tensor, p: LIFExParameters = (tensor(0.5000), tensor(200.), tensor(100.), tensor(0.), tensor(1.), tensor(0.), 'super', 100.0), dt: float = 0.001) Tuple[Tensor, Tensor] [source]#
Computes a single euler-integration step of a leaky integrator adapted from https://neuronaldynamics.epfl.ch/online/Ch5.S2.html. More specifically it implements one integration step of the following ODE
- Parameters:
input (torch.Tensor): the input current at the current time step voltage (torch.Tensor): current state of the LIFEx neuron p (LIFExParameters): parameters of a leaky integrate and fire neuron dt (float): Integration timestep to use