This API is used to calculate the p-norm distance between each pair of row vectors in the input self.
Formula:
Assume that the shape of the input
[object Object]is [N, M], and indicates the element whose index is[object Object]in row[object Object]of[object Object]. The norm distance between row[object Object]and row[object Object]is calculated as follows:The shape of out is [], where the elements are arranged in the following order: , ..., ,, ... , ...,
Each operator has calls. First, aclnnPdistForwardGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnPdistForward is called to perform computation.
Parameters:
[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 computation:
[object Object]defaults to deterministic implementation.
The following examples are for reference only. For details, see .