MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / __init__

Method __init__

core/FlowFormer/common.py:322–330  ·  view source on GitHub ↗
(self, dim, dropout = 0.)

Source from the content-addressed store, hash-verified

320
321class FeedForward(nn.Module):
322 def __init__(self, dim, dropout = 0.):
323 super().__init__()
324 self.net = nn.Sequential(
325 nn.Linear(dim, dim),
326 nn.GELU(),
327 nn.Dropout(dropout),
328 nn.Linear(dim, dim),
329 nn.Dropout(dropout)
330 )
331 def forward(self, x):
332 x = self.net(x)
333 return x

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected