braintools.surrogate.s2nn

Contents

braintools.surrogate.s2nn#

braintools.surrogate.s2nn(x, alpha=4.0, beta=1.0, epsilon=1e-08)[source]#

Spike function with the S2NN surrogate gradient.

See the documentation of S2NN for details.