[object Object]

[object Object][object Object]undefined
[object Object]
  • This API is used to obtain the real part of each element in the input tensor.

  • Formula:

    inputi=ai+bi×j,whereaiistherealpartofthecomplexnumberandbiistheimaginarypartofthecomplexnumber.input_i = a_i + b_i × j, where `a_i` is the real part of the complex number and `b_i` is the imaginary part of the complex number. outputi=aioutput_i= a_i
[object Object]

Each operator is divided into two phases (../common/Two-Phase Interface.md). You must call aclnnRealGetWorkspaceSize to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call aclnnReal 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 verification. The following errors may be returned:

    [object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

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

[object Object]
  • Deterministic computation:
    • [object Object] defaults to a deterministic implementation.
[object Object][object Object][object Object]

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

[object Object]