Computes rectified linear: max(features, 0)
.
tf.nn.relu(
features: _atypes.TensorFuzzingAnnotation[TV_Relu_T], name=None
) -> _atypes.TensorFuzzingAnnotation[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 .
|