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

Decodes the compressed input tensor based on the PDF and restores the original tensor by reassembling the mantissa.

[object Object]

Each operator is divided into . You must call the aclnnHansDecodeGetWorkspaceSize interface to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call the aclnnHansDecode interface to perform computation.

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

    • mantissa (aclTensor*, computation input): mantissa part of the input tensor to be decompressed, aclTensor on the device. The data type can be INT32. are supported. The can be ND.
    • pdf (aclTensor*, computation input): probability density distribution of the bytes where the exponent bits used during compression are located, aclTensor on the device. The data type can be INT32. The shape must be (1, 256). are supported. The can be ND.
    • fixed (aclTensor*, input for computation): first segment of the output after compression, which is an aclTensor on the device. The data type can be FLOAT16, BFLOAT16, or FLOAT32, which must be the same as that of inputTensor. are supported. The can be ND.
    • var (aclTensor*, input for computation): part of the data that exceeds the fixed space during compression, which is an aclTensor on the device. The data type can be FLOAT16, BFLOAT16, or FLOAT32, which must be the same as that of inputTensor. are supported. The can be ND.
    • out (aclTensor*, output for computation): position for storing the decompressed exponent, which is an aclTensor on the device. The data type must be the same as that of inputTensor. are supported. The can be ND.
    • [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 .

    The first-phase API implements input parameter validation. The following error codes may be returned.

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

    [object Object]
  • Returns

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

[object Object]

None

[object Object]

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

[object Object]