- Function: performs dequantization on the input x based on the input scale and offset.
- Formula:
When sqrtMode is false, the calculation formula is as follows:
When sqrtMode is true, the calculation formula is as follows:
Each operator has calls. First, aclnnAscendAntiQuantGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnAscendAntiQuant is called to perform computation.
[object Object]
[object Object]
Parameters:
[object Object]- [object Object]Atlas inference products[object Object]:
- Data type:
- The input parameter
[object Object]supports only INT8. - The input parameters
[object Object]and[object Object]and output parameter[object Object]do not support BFLOAT16.
- The input parameter
- The input parameter
[object Object]can only be set to 1, indicating FLOAT16.
- Data type:
- [object Object]Atlas inference products[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]
- Deterministic compute:
- aclnnAscendAntiQuant defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]