MCPcopy Create free account
hub / github.com/TimSeizinger/Bokehlicious / __init__

Method __init__

method/nn_util.py:41–45  ·  view source on GitHub ↗
(self, embed_dim, embed_dim_next)

Source from the content-addressed store, hash-verified

39
40class ChannelEmbeddingCompression(nn.Module):
41 def __init__(self, embed_dim, embed_dim_next):
42 super().__init__()
43 self.patch_unembed = PatchUnEmbedIR(embed_dim=embed_dim)
44 self.conv = nn.Conv2d(embed_dim, embed_dim_next, 1, 1, 0)
45 self.patch_embed = PatchEmbedIR(embed_dim=embed_dim_next)
46
47 def forward(self, x, x_size):
48 x = self.patch_unembed(x, x_size)

Callers

nothing calls this directly

Calls 3

PatchUnEmbedIRClass · 0.85
PatchEmbedIRClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected