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

Class FeedForward

Image_Classification/src/models/swin.py:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
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)
48
49
50def create_mask(window_size, displacement, upper_lower, left_right):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected