[object Object]

[object Object][object Object]undefined
[object Object]
  • This API is used to compute the fractional part of each element in the input tensor and output the result.

  • Formula:

    outi=inputiinputisgn(inputi)out_{i}=input_{i} - \lfloor \vert input_{i} \vert \rfloor * sgn(input_{i})

    sgn()sgn(\cdot) is a sign function, which extracts the sign of inputiinput_{i}.

[object Object]

Each operator has calls. First, [object Object] or [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] or [object Object] is called to perform computation.

[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
  • Parameter description:

    [object Object]
    • [object Object]Atlas training products[object Object]: The data type cannot be BFLOAT16.
  • Returns:

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

    The first-phase API performs input parameter validation. The following errors may be returned:

    [object Object]
[object Object]
  • Parameter description:

    [object Object]
  • Returns:

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

[object Object]
  • Parameter description:

    [object Object]
    • [object Object]Atlas training products[object Object]: The data type cannot be BFLOAT16.
  • Returns:

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

    The first-phase API performs input parameter validation. The following errors may be returned:

    [object Object]
[object Object]
  • Parameter description:

    [object Object]
  • Returns:

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

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

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

[object Object]