MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / __init__

Method __init__

models/decoders/MLPDecoder.py:14–16  ·  view source on GitHub ↗
(self, input_dim=2048, embed_dim=768)

Source from the content-addressed store, hash-verified

12 """
13
14 def __init__(self, input_dim=2048, embed_dim=768):
15 super().__init__()
16 self.proj = nn.Linear(input_dim, embed_dim)
17
18 def forward(self, x):
19 x = x.flatten(2).transpose(1, 2)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected