Python class
RMSNorm
RMSNormβ
class max.experimental.nn.norm.RMSNorm(dim, eps=1e-06)
Bases: Module
Computes the Root Mean Square normalization on inputs.
Constructs RMSNorm.
-
Parameters:
dimβ
property dim: Dim
Returns the embedding dimension.
epsβ
eps: float
forward()β
forward(x)
Applies RMS normalization to the input.
weightβ
weight: Tensor
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!