LeakyRelu#

class braincore.surrogate.LeakyRelu(alpha=0.1, beta=1.0)[source]#

Judge spiking state with the Leaky ReLU function.

See also

leaky_relu

surrogate_fun(x)[source]#

The surrogate function.

surrogate_grad(x)[source]#

The gradient function of the surrogate function.