The API functions are as follows:
Calculates the frequency of each number in the non-negative integer array.
[object Object]is the minimum size of the output tensor. When[object Object]is a null pointer, each occurrence of element[object Object]increments the corresponding[object Object]value by 1. When weights is provided, the corresponding[object Object]value is incremented by[object Object]. Consequently, the size of[object Object]is the greater of (the maximum value in[object Object]+ 1) and[object Object].Formulas:
If
[object Object]is the value of[object Object]at position[object Object]and[object Object]is specified, then:Otherwise:
Each operator is divided into two phases (../common/two-phase-api.md). You must call aclnnBincountGetWorkspaceSize to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call aclnnBincount to perform computation.
Parameters:
[object Object]Returns:
[object Object]: status code. For details, see .The first-phase API performs input parameter validation. The following errors may be returned:
[object Object]
- Deterministic computation:
- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object], [object Object]Atlas A3 training products/Atlas A3 inference products[object Object], [object Object]Atlas inference products[object Object], and [object Object]Atlas training products[object Object]: deterministic implementation is used by default.
- Ascend 950PR/Ascend 950DT: non-deterministic implementation is used by default. You can enable deterministic implementation by calling aclrtCtxSetSysParamOpt.
The following example is for reference only. For details, see .