MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / forward

Method forward

wan/models/wan_image_encoder.py:108–111  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

106 self.fc3 = nn.Linear(mid_dim, dim)
107
108 def forward(self, x):
109 x = F.silu(self.fc1(x)) * self.fc2(x)
110 x = self.fc3(x)
111 return x
112
113
114class AttentionBlock(nn.Module):

Callers 2

forwardMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected