xlstm_jax.models.xlstm_pytorch.components.ln#
Classes#
LayerNorm but with an optional bias. |
|
LayerNorm but with an optional bias. |
Module Contents#
- class xlstm_jax.models.xlstm_pytorch.components.ln.LayerNorm(ndim=-1, weight=True, bias=False, eps=1e-05, residual_weight=True)#
Bases:
torch.nn.ModuleLayerNorm but with an optional bias.
PyTorch doesn’t support simply bias=False.
- weight#
- bias = None#
- eps = 1e-05#
- residual_weight = True#
- ndim = -1#
- property weight_proxy: torch.Tensor#
- Return type:
- forward(input)#
- Parameters:
input (torch.Tensor)
- Return type:
- reset_parameters()#
- class xlstm_jax.models.xlstm_pytorch.components.ln.MultiHeadLayerNorm(ndim=-1, weight=True, bias=False, eps=1e-05, residual_weight=True)#
Bases:
LayerNormLayerNorm but with an optional bias.
PyTorch doesn’t support simply bias=False.
- forward(input)#
- Parameters:
input (torch.Tensor)
- Return type:
- weight#
- bias = None#
- eps = 1e-05#
- residual_weight = True#
- ndim = -1#
- property weight_proxy: torch.Tensor#
- Return type:
- reset_parameters()#