Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gau-nernst committed Aug 8, 2023
1 parent ddd8f3e commit 901fc63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vision_toolbox/backbones/mlp_mixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@


class MLP(nn.Sequential):
def __init__(self, d_model: int, mlp_dim: float, act: _act = nn.GELU) -> None:
def __init__(self, in_dim: int, hidden_dim: float, act: _act = nn.GELU) -> None:
super().__init__()
self.linear1 = nn.Linear(d_model, mlp_dim)
self.linear1 = nn.Linear(in_dim, hidden_dim)
self.act = act()
self.linear2 = nn.Linear(mlp_dim, d_model)
self.linear2 = nn.Linear(hidden_dim, in_dim)


class MixerBlock(nn.Module):
Expand Down

0 comments on commit 901fc63

Please sign in to comment.