PeriodicExponential#

class sinabs.activation.PeriodicExponential(grad_width: float = 0.5, grad_scale: float = 1.0)[source]#

Surrogate gradient as defined in Weidel and Sheik, 2021.

https://arxiv.org/abs/2111.01456

__call__(v_mem, spike_threshold)[source]#

Call self as a function.

__eq__(other)#

Return self==value.

__hash__ = None#
__init__(grad_width: float = 0.5, grad_scale: float = 1.0) None#
__repr__()#

Return repr(self).

__weakref__#

list of weak references to the object (if defined)