braintools.surrogate.leaky_relu

Contents

braintools.surrogate.leaky_relu#

braintools.surrogate.leaky_relu(x, alpha=0.1, beta=1.0)[source]#

Spike function with the Leaky ReLU surrogate gradient.

See the documentation of LeakyRelu for details.