Erf
English | 简体中文
Product Support Status
| Product | Supported |
|---|---|
| Ascend 950PR&950DT products | √ |
| Atlas A3 products | √ |
| Atlas A2 products | √ |
| Atlas 200I/500 A2 inference products | × |
| Atlas inference products | × |
| Atlas training products | √ |
Function Description
-
Operator function: returns the value of the error function for each element in the input Tensor.
-
Computation formula:
y=2π∫0xe−t2dty=\frac{2}{\sqrt{\pi } } \int_{0}^{x} e^{-t^{2} } \mathrm{d}t
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| x | Input | Input parameter for the erf computation, which is x in the formula. | BFLOAT16, FLOAT16, FLOAT | ND |
| y | Output | Output parameter for the erf computation, which is y in the formula. | BFLOAT16, FLOAT16, FLOAT | ND |
- Atlas A2 products and Atlas training products: the BFLOAT16 data type is not supported.
Constraint Description
None
Invocation Description
| Invocation Method | Invocation Sample | Description |
|---|---|---|
| aclnn invocation | test_aclnn_erf | Invokes the Erf operator through the aclnnErf API. |