norse.torch.functional.iaf.iaf_feed_forward_step

norse.torch.functional.iaf.iaf_feed_forward_step#

norse.torch.functional.iaf.iaf_feed_forward_step(input_spikes: Tensor, state: IAFFeedForwardState, p: IAFParameters = (tensor(1.), tensor(0.), 'super', tensor(100.)), dt: float = 0.001) Tuple[Tensor, IAFFeedForwardState][source]#

Feedforward step of an integrate-and-fire neuron, computing a single step

\[\dot{v} = v\]

together with the jump condition

\[z = \Theta(v - v_{\text{th}})\]

and transition equation

\[v = (1-z) v + z v_{\text{reset}}\]
Parameters:

input_spikes (torch.Tensor): the input spikes at the current time step state (IAFFeedForwardState): current state of the LIF neuron p (IAFParameters): parameters of a leaky integrate and fire neuron dt (float): Integration timestep to use (unused, but added for compatibility)