# VL_NNRELU - CNN rectified linear unit.

Y = VL_NNRELU(X) applies the rectified linear unit to the data X. X can have arbitrary size.

DZDX = VL_NNRELU(X, DZDY) computes the derivative of the block projected onto DZDY. DZDX and DZDY have the same dimensions as X and Y respectively.

VL_NNRELU(...,'OPT',VALUE,...) takes the following options:

• Leak [0]

Set the leak factor, a non-negative number. Y is equal to X if X is not smaller than zero; otherwise, Y is equal to X multipied by the leak factor. By default, the leak factor is zero; for values greater than that one obtains the leaky ReLU unit.