[object Object]

[object Object][object Object]undefined
[object Object]

Operator function: Compares the precisions of two tensors by checking whether they have the same elements. This will return the operator execution status code and will not trigger fault reporting of the management plane.

[object Object]

Each operator has calls. First, aclnnPrecisionCompareGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnPrecisionCompare is called to perform computation.

  • [object Object]
  • [object Object]
[object Object]
  • Parameters:

    • [object Object] (aclTensor*, computation input): aclTensor on the device. The data type can be FLOAT16, FLOAT, or BFLOAT16, and must be the same as that of realdata. are supported. The can be ND. The shape supports 0 to 8 dimensions and must be the same as that of [object Object].
    • [object Object] (aclTensor*, compute input): aclTensor on the device. The data type can be FLOAT16, FLOAT, or BFLOAT16, and must be the same as that of golden. are supported. The supports ND. The shape supports 0 to 8 dimensions and must be the same as that of [object Object].
    • [object Object] (aclTensor*, compute output): aclTensor on the device. The data type can be UINT32, the can be ND, and the shape can be 0-dimensional.
    [object Object]
    • [object Object] (uint64_t *, output): size of the workspace to be allocated on the device.
    • [object Object] (aclOpExecutor **, output): operator executor, containing the operator computation process.
  • Returns:

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

[object Object]
[object Object]
  • Parameters:

    • [object Object] (void*, input): address of the workspace to be allocated on the device.
    • [object Object](uint64_t, input): size of the workspace to be allocated on the device, which is obtained by calling aclnnPrecisionCompareGetWorkspaceSize.
    • [object Object] (aclOpExecutor *, input): operator executor, containing the operator computation process.
    • [object Object] (aclrtStream, input): stream for executing the task.
  • 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]