MCPcopy Create free account
hub / github.com/cure-lab/deep-active-learning / forward

Method forward

models/gcn.py:31–37  ·  view source on GitHub ↗
(self, input, adj)

Source from the content-addressed store, hash-verified

29 self.bias.data.uniform_(-stdv, stdv)
30
31 def forward(self, input, adj):
32 support = torch.mm(input, self.weight)
33 output = torch.spmm(adj, support)
34 if self.bias is not None:
35 return output + self.bias
36 else:
37 return output
38
39 def __repr__(self):
40 return self.__class__.__name__ + ' (' \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected