- Description: Performs the square root operation on each tensor in the input tensor list.
- Formula:
Each operator has calls. First, aclnnForeachSqrtGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnForeachSqrt is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]: The shape size of the input parameter
[object Object]is less than or equal to that of the output parameter[object Object]. - Ascend 950PR/Ascend 950DT: The shape size of the input parameter
[object Object]is the same as that of the output parameter[object Object]. Both the input parameter[object Object]and the output parameter[object Object]support a maximum of 50 tensors.
- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]: The shape size of the input parameter
Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Deterministic computation:
- aclnnForeachSqrt defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]