braintools.surrogate.relu_grad

Contents

braintools.surrogate.relu_grad#

braintools.surrogate.relu_grad(x, alpha=0.3, width=1.0)[source]#

Spike function with the ReLU gradient surrogate.

See the documentation of ReluGrad for details.