[object Object]

[object Object][object Object]undefined
[object Object]
  • Operator function: Calculates the square value of each element in the input tensor.

  • Formula:

out=selfselfout=self*self [object Object]

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]
[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]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic compute:
    • The default deterministic implementation of aclnnSquare is used.
[object Object]

The following example is for reference only. For details, see .

[object Object]