InvSquareGrad#

class braincore.surrogate.InvSquareGrad(alpha=100.0)[source]#

Judge spiking state with the inverse-square surrogate gradient function.

See also

inv_square_grad

surrogate_grad(x)[source]#

The gradient function of the surrogate function.