brainpy.math.surrogate.LogTailedRelu

brainpy.math.surrogate.LogTailedRelu#

class brainpy.math.surrogate.LogTailedRelu(alpha=0.0)[source]#

Judge spiking state with the Log-tailed ReLU function.

See also

log_tailed_relu

__init__(alpha=0.0)[source]#

Methods

__init__([alpha])

surrogate_fun(x)

The surrogate function.

surrogate_grad(x)

The gradient function of the surrogate function.