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

Method forward

models/decoders/LMLPDecoder.py:18–21  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

16 self.proj = nn.Linear(input_dim, embed_dim)
17
18 def forward(self, x):
19 x = x.flatten(2).transpose(1, 2)
20 x = self.proj(x)
21 return x
22
23
24class DecoderHead(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected