Description: Performs the sine function operation on each tensor in the input tensor list.
Formula:
Example
The input
[object Object]is [–1, –2] with data type[object Object]. After the[object Object]operator is called: The output[object Object]is [–0.8415, –0.9093] with data type[object Object].
Each operator has calls. First, aclnnForeachSinGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnForeachSin is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- When the input value is within the range [–65504, 65504], function precision requirements can be met. If it is not, the precision cannot be ensured.
- Deterministic computation:
- aclnnForeachSin defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]