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!