espnet2.sds.end_to_end.mini_omni.litgpt.model.RMSNorm
espnet2.sds.end_to_end.mini_omni.litgpt.model.RMSNorm
class espnet2.sds.end_to_end.mini_omni.litgpt.model.RMSNorm(size: int, dim: int = -1, eps: float = 1e-06, add_unit_offset: bool = False)
Bases: Module
Root Mean Square Layer Normalization.
Derived from https://github.com/bzhangGo/rmsnorm/blob/master/ rmsnorm_torch.py. BSD 3-Clause License: https://github.com/bzhangGo/rmsnorm/blob/master/LICENSE.
Initialize internal Module state, shared by both nn.Module and ScriptModule.
forward(x: Tensor) → Tensor
Define the computation performed at every call.
Should be overridden by all subclasses.
NOTE
Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
reset_parameters() → None
