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

Method forward

layer.py:25–29  ·  view source on GitHub ↗
(self, x, W)

Source from the content-addressed store, hash-verified

23 super(wconv, self).__init__()
24
25 def forward(self, x, W):
26 # x.shape = (batch, dim, nodes, seq_len)
27 # w.shape = (dim, dim)
28 x = torch.einsum('ncwl,vc->nvwl', (x, W))
29 return x.contiguous()
30
31
32class dy_nconv(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected