- Description: Computes the norm of each tensor in the input tensor list.
- Formula:
[object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]:
Ascend 950PR/Ascend 950DT:
scalar = +Inf:
int(scalar) = 1:
other:
Each operator has calls. First, aclnnForeachNormGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnForeachNorm is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]- Ascend 950PR/Ascend 950DT: The maximum length of the
[object Object]and[object Object]parameters is 256 characters.
- Ascend 950PR/Ascend 950DT: The maximum length of the
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:
- aclnnForeachNorm defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]