MCPcopy Create free account
hub / github.com/TrustAGI-Lab/MTGODE / forward

Method forward

layer.py:14–18  ·  view source on GitHub ↗
(self,x, A)

Source from the content-addressed store, hash-verified

12 super(nconv,self).__init__()
13
14 def forward(self,x, A):
15 # x.shape = (batch, dim, nodes, seq_len)
16 # A.shape = (node, node)
17 x = torch.einsum('ncwl,vw->ncvl', (x, A))
18 return x.contiguous()
19
20
21class wconv(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected