You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.ops.Sqrt.rst 539 B

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