ReluGrad#

class braincore.surrogate.ReluGrad(alpha=0.3, width=1.0)[source]#

Judge spiking state with the ReLU gradient function.

See also

relu_grad

surrogate_grad(x)[source]#

The gradient function of the surrogate function.