OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
ReLU
====
.. meta::
:description: Learn about ReLU-1 - an element-wise, activation operation, which
can be performed on a single tensor in OpenVINO.
**Versioned name**: *ReLU-1*
**Category**: *Activation function*
**Short description**: ReLU element-wise activation function. (`Reference <http://caffe.berkeleyvision.org/tutorial/layers/relu.html>`__).
**Detailed description**: `Reference <https://github.com/Kulbear/deep-learning-nano-foundation/wiki/ReLU-and-Softmax-Activation-Functions#rectified-linear-units>`__.
**Attributes**: *ReLU* operation has no attributes.
**Mathematical Formulation**
For each element from the input tensor calculates corresponding element in the output tensor with the following formula:
.. math::
Y_{i}^{( l )} = max(0,\ Y_{i}^{( l - 1 )})
**Inputs**:
* **1**: Multidimensional input tensor *x* of any supported numeric type. **Required.**
**Outputs**:
* **1**: Result of ReLU function applied to the input tensor *x*. Tensor with shape and type matching the input tensor.
**Example**
.. code-block:: xml
:force:
<layer ... type="ReLU">
<input>
<port id="0">
<dim>256</dim>
<dim>56</dim>
</port>
</input>
<output>
<port id="1">
<dim>256</dim>
<dim>56</dim>
</port>
</output>
</layer>