Skip to content

Commit

Permalink
Fix typo in LayerNorm (#285)
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Lukin <artyom.lukin98@gmail.com>
  • Loading branch information
l0wgear and l0wgear committed Oct 24, 2023
1 parent 53fe345 commit fb4ac25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vit_pytorch/vit_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class FeedForward(nn.Module):
def __init__(self, dim, hidden_dim, dropout = 0.):
super().__init__()
self.net = nn.Sequential(
nn.Layernorm(dim),
nn.LayerNorm(dim),
nn.Linear(dim, hidden_dim),
nn.GELU(),
nn.Dropout(dropout),
Expand Down

0 comments on commit fb4ac25

Please sign in to comment.