relu

relu(x: numpy.ndarray) → numpy.ndarray

Relu activation function.

function:

f(x) = 0 if x < 0

f(x) = x if x > 0

Parameters

x (Tensor) – input to the function

Returns

f(x), applies activation function

Return type

Tensor