norse.torch.module.iaf.IAFParameters#
- class norse.torch.module.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__()bio_default()count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
alphaAlias for field number 3
methodAlias for field number 2
v_resetAlias for field number 1
v_thAlias for field number 0