braintools.surrogate.piecewise_leaky_relu

braintools.surrogate.piecewise_leaky_relu#

braintools.surrogate.piecewise_leaky_relu(x, c=0.01, w=1.0)[source]#

Spike function with the piecewise leaky ReLU surrogate gradient.

See the documentation of PiecewiseLeakyRelu for details.