braintools.surrogate.soft_sign

Contents

braintools.surrogate.soft_sign#

braintools.surrogate.soft_sign(x, alpha=1.0)[source]#

Spike function with the soft sign surrogate gradient.

See the documentation of SoftSign for details.