MCPcopy Create free account
hub / github.com/IntelligentSystemsLab/ST-EVCDP / forward

Method forward

baselines.py:62–74  ·  view source on GitHub ↗
(self, occ, prc)

Source from the content-addressed store, hash-verified

60 self.A = a_delta
61
62 def forward(self, occ, prc): # occ.shape = [batch, node, seq]
63 x = torch.stack([occ, prc], dim=3)
64 x = self.encoder(x)
65 # l1
66 x = self.gcn_l1(x)
67 x = torch.matmul(self.A, x)
68 x = self.act(x)
69 # l2
70 x = self.gcn_l2(x)
71 x = torch.matmul(self.A, x)
72 x = self.act(x)
73 x = self.decoder(x)
74 return x
75
76
77class LstmGcn(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected