MCPcopy Index your code
hub / github.com/VisionXLab/OF-Diff / __init__

Method __init__

cldm/fet.py:37–41  ·  view source on GitHub ↗
(self, patch_dim, norm_layer=nn.LayerNorm)

Source from the content-addressed store, hash-verified

35
36class PatchMerging(nn.Module):
37 def __init__(self, patch_dim, norm_layer=nn.LayerNorm):
38 super(PatchMerging, self).__init__()
39 self.patch_dim = patch_dim
40 self.norm = norm_layer(4 * patch_dim)
41 self.reduction = nn.Linear(4 * patch_dim, 2 * patch_dim)
42
43 def forward(self, x):
44 B, H, W, C = x.shape

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected