relu6

Contents

relu6#

class brainpy.math.relu6(x)[source]#

Rectified Linear Unit 6 activation function.

Computes the element-wise function

\[\mathrm{relu6}(x) = \min(\max(x, 0), 6)\]
Parameters:

x (ArrayType) – The input array.