Sin
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: performs the sine operation on each element of the input matrix and outputs the result.
-
Computation formula:
outi=sin(inputi)out_{i}=sin(input_{i})
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| x | Input | Input parameter for the sin computation, which is input_i in the formula. | FLOAT, FLOAT16, BFLOAT16 | ND |
| y | Output | Output parameter for the sin computation, which is out_i in the formula. | FLOAT, FLOAT16, BFLOAT16 | ND |
- Atlas 200I/500 A2 inference products, Atlas inference products, and Atlas training products: BFLOAT16 is not supported.
Constraint Description
- Atlas A2 products and Atlas A3 products: the accuracy requirement is met when the input data of the FLOAT, FLOAT16, and BFLOAT16 types is in the range [-10^7, 10^7]. The accuracy cannot be guaranteed if the value is out of the range. Use the CPU for computation.
- Atlas inference products: the accuracy requirement is met when the input data of the FLOAT and FLOAT16 types is in the range [-65504, 65504]. The accuracy cannot be guaranteed if the value is out of the range. Use the CPU for computation.
Invocation Description
| Invocation Method | Invocation Sample | Description |
|---|---|---|
| aclnn invocation | test_aclnn_sin | Invokes the Sin operator through the aclnnSin API. |