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

Method forward

layer.py:361–371  ·  view source on GitHub ↗
(self, t, x)

Source from the content-addressed store, hash-verified

359 self.out = []
360
361 def forward(self, t, x):
362 adj = self.adj + torch.eye(self.adj.size(0)).to(x.device)
363 d = adj.sum(1)
364 _d = torch.diag(torch.pow(d, -0.5))
365 adj_norm = torch.mm(torch.mm(_d, adj), _d)
366
367 self.out.append(x)
368 self.nfe += 1
369 ax = self.nconv(x, adj_norm)
370 f = 0.5 * self.alpha * (ax - x)
371 return f
372
373
374class CGPODEBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected