norse.torch.functional.lif_ex_current_encoder(input_current: torch.Tensor, voltage: torch.Tensor, p: norse.torch.functional.lif_ex.LIFExParameters = LIFExParameters(delta_T=tensor(0.5000), tau_syn_inv=tensor(200.), tau_mem_inv=tensor(100.), v_leak=tensor(0.), v_th=tensor(1.), v_reset=tensor(0.), method='super', alpha=100.0), dt: float = 0.001) Tuple[torch.Tensor, torch.Tensor][source]#

Computes a single euler-integration step of a leaky integrator adapted from More specifically it implements one integration step of the following ODE

\[\begin{split}\begin{align*} \dot{v} &= 1/\tau_{\text{mem}} \left(v_{\text{leak}} - v + i + \Delta_T exp\left({{v - v_{\text{th}}} \over {\Delta_T}}\right)\right) \\ \dot{i} &= -1/\tau_{\text{syn}} i \end{align*}\end{split}\]

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