mindspore/docs/api/api_python/ops/mindspore.ops.func_sqrt.rst

19 lines
384 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:function:: mindspore.ops.sqrt(x)
逐元素返回当前Tensor的平方。
.. math::
y_i = \\sqrt(x_i)
参数:
- **x** (Tensor) - 任意维度的输入Tensor。该值必须大于0。
返回:
Tensor具有与 `x` 相同的shape。
异常:
- **TypeError** - `x` 不是Tensor。