relu

dragon.vm.tensorflow.nn.relu(
  features,
  name=None,
  **kwargs
)[source]

Apply the rectified linear unit. [Nair & Hinton, 2010].

The ReLU function is defined as:

\[\text{ReLU}(x) = \begin{cases} x, & \text{ if } x \geq 0 \\ 0, & \text{ otherwise } \end{cases} \]
Parameters:
  • features (dragon.Tensor) The input tensor.
  • name (str, optional) The operation name.
Returns:

dragon.Tensor The output tensor.