MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

cldm/fet.py:26–33  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

24 self.residual = nn.Identity()
25
26 def forward(self, x):
27 residual = self.residual(x)
28 out = self.conv1(x)
29 out = self.silu(out)
30 out = self.conv2(out)
31 out += residual
32 out = self.silu(out)
33 return out
34
35
36class PatchMerging(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected