mr2.nn.RMSNorm
- class mr2.nn.RMSNorm[source]
Bases:
ModuleRMSNorm over the channel dimension.
As used in the DCAE [DCAE].
References
[DCAE]Chen, J., Cai, H., Chen, J., Xie, E., Yang, S., Tang, H., … & Han, S. Deep compression autoencoder for efficient high-resolution diffusion models. ICLR 2025. https://arxiv.org/abs/2410.10733
- __init__(n_channels: int | None = None, eps: float = 1e-8, features_last: bool = False)[source]
Initialize RMSNorm.
Includes a learnable weight and bias if n_channels is provided.