- Description: The RmsNorm operator is a normalization operation commonly used in foundation models. The AddRmsNormCast operator fuses the Cast operator after AddRmsNorm to reduce move-in and move-out operations.
- Formula:
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]Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
Dimension boundary description:
The size of each dimension in the shape of thex1, x2,gamma, y1Out, y2Out, rstdOut, and xOut parameters cannot be greater than the maximum value 2147483647 of INT32.
Description of boundary value scenarios:
- When the input is Inf, the output is Inf.
- When the input is NaN, the output is NaN.
Deterministic compute:
- aclnnAddRmsNormCast defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]