Files
openvino/docs/ops/activation/ReLU_1.md
Dawid Kożykowski 273c7188a4 Beautify operator specifications (#6958)
* beautify operator specifications

* further update ops specs

* update FloorMod spec

* update adaptive pool spec

* update HSwish spec

* bringg back old erf version
2021-08-12 13:11:30 +03:00

1.2 KiB

ReLU

Versioned name: ReLU-1

Category: Activation function

Short description: ReLU element-wise activation function. (Reference)

Detailed description: Reference

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: \f[ Y_{i}^{( l )} = max(0,\ Y_{i}^{( l - 1 )}) \f]

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

<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>