MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / __init__

Method __init__

Image_Classification/src/models/swin.py:38–44  ·  view source on GitHub ↗
(self, dim, hidden_dim)

Source from the content-addressed store, hash-verified

36
37class FeedForward(nn.Module):
38 def __init__(self, dim, hidden_dim):
39 super().__init__()
40 self.net = nn.Sequential(
41 nn.Linear(dim, hidden_dim),
42 nn.GELU(),
43 nn.Linear(hidden_dim, dim),
44 )
45
46 def forward(self, x):
47 return self.net(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected