Operator function: Calculates the square value of each element in the input tensor.
Formula:
Each operator is divided into . You must call the aclnnSquareGetWorkspaceSize API to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call the aclnnSquare API 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 validation. The following error codes may be returned.
[object Object]
- Deterministic compute:
- The default deterministic implementation of aclnnSquare is used.
The following example is for reference only. For details, see .
[object Object]