Description: Computes the mean value and the reciprocal of the standard deviation for the input data of a single card.
Formulas:
Mean value:
Reciprocal of standard deviation:
Each operator has calls. First, [object Object] is called to obtain the input parameters and compute the required workspace size based on the process. Then, [object Object] is called to perform computation.
[object Object][object Object]
Parameters:
[object Object](aclTensor *, computation input): input tensor, which is an aclTensor on the device. It supports . Supported shapes and data formats include: 2D (NC), 3D (NCL), 4D (NCHW), 5D (NCDHW), and 6D to 8D (ND, where the second dimension must be the channel axis).- [object Object]Atlas training products[object Object], [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]: The data type can be FLOAT or FLOAT16.
[object Object](double, computation input): value added to the denominator for numeric stability, which is of the DOUBLE type.[object Object](aclTensor *, computation output): output mean, which is an aclTensor on the device. The data type can be FLOAT. When the input type is FLOAT16 or BFLOAT16, the data type is cast to FLOAT for processing. The can be ND.[object Object](aclTensor *, computation output): output inverse standard deviation, which is an aclTensor on the device. The data type can be FLOAT. When the input type is FLOAT16 or BFLOAT16, the data type is cast to FLOAT for processing. The can be ND.[object Object](uint64_t*, output): size of the workspace to be allocated on the device.[object Object](aclOpExecutor**, output): operator executor, covering the operator computation process.
Returns:
[object Object]
Parameters:
[object Object](void *, input): address of the workspace to be allocated on the device.[object Object](uint64_t, input): size of the workspace to be allocated on the device, which is obtained by calling the first-phase API[object Object].[object Object](aclOpExecutor *, input): operator executor, covering the operator computation process.[object Object](aclrtStream, input): stream for executing the task.
Returns:
- Deterministic computation:
[object Object]defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]