- Description: Computes the vector norm of the input tensor.
- Formula: n indicates the size of the dimensions specified by dims.
Each operator has calls. First, aclnnLinalgVectorNormGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnLinalgVectorNorm is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]- Ascend 950PR/Ascend 950DT: The ord parameter can be set to 2147483647.0, -2147483648.0, Inf, or -Inf.
- [object Object]Atlas inference products[object Object], [object Object]Atlas training products[object Object], and [object Object]Atlas 200I/500 A2 inference products[object Object]: The data type cannot be BFLOAT16.
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
- aclnnLinalgVectorNorm defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic compute.
The following example is for reference only. For details, see .
[object Object]