braintools.surrogate.piecewise_exp

Contents

braintools.surrogate.piecewise_exp#

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

Spike function with the piecewise exponential surrogate gradient.

See the documentation of PiecewiseExp for details.