MCPcopy Create free account
hub / github.com/Vegetebird/GraphMLP / forward

Method forward

model/graphmlp.py:20–29  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

18 self.head = nn.Linear(args.channel, 3)
19
20 def forward(self, x):
21 x = rearrange(x, 'b f j c -> b j (c f)').contiguous() # B 17 (2f)
22
23 x = self.embedding(x) # B 17 512
24 x = self.mlp_gcn(x) # B 17 512
25 x = self.head(x) # B 17 3
26
27 x = rearrange(x, 'b j c -> b 1 j c').contiguous() # B, 1, 17, 3
28
29 return x
30

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected