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

24 lines
568 B
ReStructuredText
Raw Normal View History

2021-12-04 13:55:42 +08:00
mindspore.ops.Erf
=================
2021-12-22 11:46:09 +08:00
.. py:class:: mindspore.ops.Erf()
2021-12-04 13:55:42 +08:00
2021-12-22 11:46:09 +08:00
逐元素计算 `x` 的高斯误差函数。
2021-12-04 13:55:42 +08:00
.. math::
erf(x)=\frac{2} {\sqrt{\pi}} \int\limits_0^{x} e^{-t^{2}} dt
**输入:**
- **x** (Tensor) - 高斯误差函数的输入Tensor。维度必须小于8数据类型必须为float16或float32。
2021-12-04 13:55:42 +08:00
**输出:**
Tensor具有与 `x` 相同的数据类型和shape。
**异常:**
- **TypeError** - `x` 不是Tensor。
2021-12-04 13:55:42 +08:00
- **TypeError** - `x` 的数据类型既不是float16也不是float32。