LIState

class norse.torch.functional.leaky_integrator.LIState(v: torch.Tensor, i: torch.Tensor)[source]

State of a leaky-integrator

Parameters:

v (torch.Tensor): membrane voltage i (torch.Tensor): input current

count(value, /)

Return number of occurrences of value.

i: torch.Tensor

Alias for field number 1

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 0