Heaviside#

class sinabs.activation.Heaviside(window: float = 1.0)[source]#

Heaviside surrogate gradient with optional shift.

Parameters

window – Distance between step of Heaviside surrogate gradient and threshold, relative to threshold.

__call__(v_mem, spike_threshold)[source]#

Call self as a function.

__eq__(other)#

Return self==value.

__hash__ = None#
__init__(window: float = 1.0) None#
__repr__()#

Return repr(self).

__weakref__#

list of weak references to the object (if defined)