[object Object]

[object Object][object Object]undefined
[object Object]
  • Operator function: Calculates the p-norm distance between each point in two vector sets.
  • Formulas:y=x1x2ppy = \sqrt[p]{\sum |x1 - x2|^p}
[object Object]

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]
[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]
[object Object]
  • Parameter description:

    [object Object]
  • Returns

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

[object Object]
  • Deterministic computation:
    • The aclnnCdist is deterministic by default.
[object Object]

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

[object Object]