Skip to content

Commit

Permalink
Fix missing norm call in Mlp forward (not used by default, but can be…
Browse files Browse the repository at this point in the history
… enabled for normformer MLP scale). Fix #1851 fix #1852
  • Loading branch information
rwightman committed Aug 3, 2023
1 parent 8e4480e commit 76d1669
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions timm/layers/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def forward(self, x):
x = self.fc1(x)
x = self.act(x)
x = self.drop1(x)
x = self.norm(x)
x = self.fc2(x)
x = self.drop2(x)
return x
Expand Down

0 comments on commit 76d1669

Please sign in to comment.