MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / __init__

Method __init__

wan/modules/clip.py:96–104  ·  view source on GitHub ↗
(self, dim, mid_dim)

Source from the content-addressed store, hash-verified

94class SwiGLU(nn.Module):
95
96 def __init__(self, dim, mid_dim):
97 super().__init__()
98 self.dim = dim
99 self.mid_dim = mid_dim
100
101 # layers
102 self.fc1 = nn.Linear(dim, mid_dim)
103 self.fc2 = nn.Linear(dim, mid_dim)
104 self.fc3 = nn.Linear(mid_dim, dim)
105
106 def forward(self, x):
107 x = F.silu(self.fc1(x)) * self.fc2(x)

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected