norse.torch.functional.iaf.IAFParameters#
- class norse.torch.functional.iaf.IAFParameters(v_th: Tensor = tensor(1.), v_reset: Tensor = tensor(0.), method: str = 'super', alpha: float = tensor(100.))[source]#
Parametrization of an integrate-and-fire neuron
- Parameters:
v_th (torch.Tensor): threshold potential in mV v_reset (torch.Tensor): reset potential in mV method (str): method to determine the spike threshold
(relevant for surrogate gradients)
alpha (float): hyper parameter to use in surrogate gradient computation
- __init__()#
Methods
__init__
()count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
Attributes
alpha
Alias for field number 3
method
Alias for field number 2
v_reset
Alias for field number 1
v_th
Alias for field number 0