STDPSensorState

class norse.torch.functional.STDPSensorState(a_pre: torch.Tensor, a_post: torch.Tensor)[source]

State of an event driven STDP sensor.

Parameters:

a_pre (torch.Tensor): presynaptic STDP sensor state. a_post (torch.Tensor): postsynaptic STDP sensor state.

a_post: torch.Tensor

Alias for field number 1

a_pre: torch.Tensor

Alias for field number 0

count(value, /)

Return number of occurrences of value.

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

Return first index of value.

Raises ValueError if the value is not present.