SlayerGrad#

class braincore.surrogate.SlayerGrad(alpha=1.0)[source]#

Judge spiking state with the slayer surrogate gradient function.

See also

slayer_grad

surrogate_grad(x)[source]#

The gradient function of the surrogate function.