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

Method forward

models/modules/mlp.py:89–92  ·  view source on GitHub ↗
(self, x, H, W)

Source from the content-addressed store, hash-verified

87 self.mlp = MLPLayer(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
88
89 def forward(self, x, H, W):
90 x = x + self.drop_path(self.attn(self.norm1(x), H, W))
91 x = x + self.drop_path(self.mlp(self.norm2(x), H, W))
92 return x
93
94
95class OverlapPatchEmbed(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected