[object Object]

[object Object][object Object]undefined
[object Object]
  • This API is used to check whether the elements of two tensors are the same, compare the precision, and return the status code of operator execution. It does not trigger fault reporting on the management plane.

  • Formulas:

    goldeni=realdatai,i=0,1,,n1golden_i = realdata_i, \quad i = 0, 1, \ldots, n-1

    Compare the golden data with the real data element by element. The out parameter returns the status code of the comparison result. The value 0 indicates that the comparison is successful, and a non-zero value indicates that the comparison fails.

[object Object]

Each operator is divided into two APIs (../common/two-phase_api.md). You must call aclnnPrecisionCompareGetWorkspaceSize to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call aclnnPrecisionCompare 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 thrown.

    [object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

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

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

The following examples are for reference only. For details, see .

[object Object]