Heaviside#

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

Heaviside surrogate gradient with optional shift.

Parameters

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

Return type

None