LIFState

class norse.torch.LIFState(z: torch.Tensor, v: torch.Tensor, i: torch.Tensor)[source]

State of a LIF neuron

Parameters:

z (torch.Tensor): recurrent spikes v (torch.Tensor): membrane potential i (torch.Tensor): synaptic input current

count(value, /)

Return number of occurrences of value.

i: torch.Tensor

Alias for field number 2

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

v: torch.Tensor

Alias for field number 1

z: torch.Tensor

Alias for field number 0