Computes rectified linear: max(features, 0)
.
tf.nn.relu(
features: Annotated[Any, TV_Relu_T], name=None
) -> Annotated[Any, TV_Relu_T]
See: https://en.wikipedia.org/wiki/Rectifier_(neural_networks) Example usage:
>>> tf.nn.relu([-2., 0., 3.]).numpy()
array([0., 0., 3.], dtype=float32)
Returns | |
---|---|
A Tensor . Has the same type as features .
|