Files
openvino/docs/ops/arithmetic/Sqrt_1.md
T
Tatiana Savina aa5b6ecac2 DOCS shift to rst - Opset S (#17158)
* ops to rst

* fix errors

* formula fix

* change code

* console directive

* vsplit try hoghlight

* fix code snippets

* comment fixes

* fix list
2023-04-24 11:02:30 +02:00

93 lines
2.0 KiB
Markdown

# Sqrt {#openvino_docs_ops_arithmetic_Sqrt_1}
@sphinxdirective
**Versioned name**: *Sqrt-1*
**Category**: *Arithmetic unary*
**Short description**: Square root element-wise operation.
**Detailed description**: *Sqrt* performs element-wise square root operation on a given input tensor ``a``, as in the following mathematical formula, where ``o`` is the output tensor:
.. math::
o_{i} = \sqrt{a_{i}}
* If the input value is negative, then the result is undefined.
* For integer element type the result is rounded (half up) to the nearest integer value.
**Attributes**: *Sqrt* operation has no attributes.
**Inputs**
* **1**: A tensor of type *T* and arbitrary shape. **Required.**
**Outputs**
* **1**: The result of element-wise *Sqrt* operation. A tensor of type *T* and the same shape as input tensor.
**Types**
* *T*: any numeric type.
**Examples**
*Example 1*
.. code-block:: cpp
<layer ... type="Sqrt">
<input>
<port id="0">
<dim>4</dim> < !-- float input values: [4.0, 7.0, 9.0, 10.0] -->
</port>
</input>
<output>
<port id="1">
<dim>4</dim> < !-- float output values: [2.0, 2.6457512, 3.0, 3.1622777] -->
</port>
</output>
</layer>
*Example 2*
.. code-block:: cpp
<layer ... type="Sqrt">
<input>
<port id="0">
<dim>4</dim> < !-- int input values: [4, 7, 9, 10] -->
</port>
</input>
<output>
<port id="1">
<dim>4</dim> < !-- int output values: [2, 3, 3, 3] -->
</port>
</output>
</layer>
*Example 3*
.. code-block:: cpp
<layer ... type="Sqrt">
<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>
@endsphinxdirective