norse.torch.functional.STDPSensorState

norse.torch.functional.STDPSensorState#

class norse.torch.functional.STDPSensorState(a_pre: Tensor, a_post: 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.

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

a_post

Alias for field number 1

a_pre

Alias for field number 0