MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / __init__

Method __init__

diffsynth/models/wan_video_image_encoder.py:273–281  ·  view source on GitHub ↗
(self, dim, mid_dim)

Source from the content-addressed store, hash-verified

271class SwiGLU(nn.Module):
272
273 def __init__(self, dim, mid_dim):
274 super().__init__()
275 self.dim = dim
276 self.mid_dim = mid_dim
277
278 # layers
279 self.fc1 = nn.Linear(dim, mid_dim)
280 self.fc2 = nn.Linear(dim, mid_dim)
281 self.fc3 = nn.Linear(mid_dim, dim)
282
283 def forward(self, x):
284 x = F.silu(self.fc1(x)) * self.fc2(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected