MultiGaussianGrad#

class braincore.surrogate.MultiGaussianGrad(h=0.15, s=6.0, sigma=0.5, scale=0.5)[source]#

Judge spiking state with the multi-Gaussian gradient function.

surrogate_grad(x)[source]#

The gradient function of the surrogate function.