chainerx.relu

chainerx.relu(x)

Rectified Linear Unit function.

Parameters

x (ndarray) – Input array.

Returns

Returned array: \(y = \max (0, x)\).

Return type

ndarray

Note

During backpropagation, this function propagates the gradient of the output array to the input array x.