MCPcopy Create free account
hub / github.com/ZhengPeng7/BiRefNet / forward

Method forward

models/modules/mlp.py:21–27  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

19 self.drop = nn.Dropout(drop)
20
21 def forward(self, x):
22 x = self.fc1(x)
23 x = self.act(x)
24 x = self.drop(x)
25 x = self.fc2(x)
26 x = self.drop(x)
27 return x
28
29
30class Attention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected