mindspore2022/docs/api/api_python/ops/mindspore.ops.Sqrt.rst

24 lines
539 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.Sqrt
===================
.. py:class:: mindspore.ops.Sqrt
计算输入Tensor的平方根。
.. note::
当输入数据存在一些负数则负数对应位置上的返回结果为NaN。
.. math::
out_{i} = \sqrt{x_{i}}
**输入:**
- **x** (Tensor) - Sqrt的输入任意维度的Tensor其秩应小于8数据类型为数值型。
**输出:**
Tensorshape和数据类型与输入 `x` 相同。
**异常:**
- **TypeError** - `x` 不是Tensor。