Skip to content

Commit

Permalink
Add **kwargs to LayerNormNC constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Berger committed Nov 5, 2024
1 parent 5aa74f8 commit 6fa0d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i6_models/parts/conformer/norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ class LayerNormNC(nn.LayerNorm):
see here: https://pytorch.org/docs/stable/generated/torch.nn.LayerNorm.html
"""

def __init__(self, channels: int):
def __init__(self, channels: int, **kwargs):
"""
:param channels: number of channels for normalization
"""
super().__init__(channels)
super().__init__(channels, **kwargs)

def forward(self, tensor: torch.Tensor) -> torch.Tensor:
"""
Expand Down

0 comments on commit 6fa0d2a

Please sign in to comment.