tf.nn.relu

Computes rectified linear: max(features, 0).

tf.nn.relu(
    features, name=None
)

See: https://en.wikipedia.org/wiki/Rectifier_(neural_networks) Example usage:

tf.nn.relu([-2., 0., -0., 3.]).numpy() array([ 0., 0., -0., 3.], dtype=float32)

Args:

Returns:

A Tensor. Has the same type as features.