- Operator function: Calculates the p-norm distance between each point in two vector sets.
- Formulas:
Each operator is divided into two functions (see../common/two-phase-api.md). You must call aclnnCdistGetWorkspaceSize to obtain the workspace size required for computation and the executor that contains the operator execution process, and then call aclnnCdist to perform the computation.
[object Object]
[object Object]
Parameter description:
[object Object]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]
- Deterministic computation:
- The aclnnCdist is deterministic by default.
The following example is for reference only. For details, see .
[object Object]