brainpy.math.surrogate.InvSquareGrad# class brainpy.math.surrogate.InvSquareGrad(alpha=100.0)[source]# Judge spiking state with the inverse-square surrogate gradient function. See also inv_square_grad __init__(alpha=100.0)[source]# Methods __init__([alpha]) surrogate_fun(x) The surrogate function. surrogate_grad(x) The gradient function of the surrogate function.