2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
erfinv_doc.yaml 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
erfinv:
description: |
Returns the result of the inverse error function with `input`, which is defined in the range `(-1, 1)` as:
.. math::
erfinv(erf(x)) = x
where :math:`x` is the `input`.
Args:
input (Tensor): The input tensor to compute with.
Supported dtypes:
- Ascend: float16, float32, int8, int16, int32, int64, uint8, bool.
- GPU/CPU: float16, float32 or float64.
Returns:
Tensor, has the same shape and dtype as `input`.
:raise TypeError: If dtype of `input` is not as follows
- Ascend: float16, float32, int8, int16, int32, int64, uint8, bool.
- GPU/CPU: float16, float32 or float64.
Supported Platforms:
``Ascend`` ``GPU`` ``CPU``
Examples:
>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor, ops
>>> input = Tensor(np.array([0, 0.5, -0.9]), mindspore.float32)
>>> output = ops.erfinv(input)
>>> print(output)
[ 0. 0.47695306 -1.1630805 ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
master

搜索帮助