S2NN#

class braincore.surrogate.S2NN(alpha=4.0, beta=1.0, epsilon=1e-08)[source]#

Judge spiking state with the S2NN surrogate spiking function.

See also

s2nn

surrogate_fun(x)[source]#

The surrogate function.

surrogate_grad(x)[source]#

The gradient function of the surrogate function.