MCPcopy Create free account
hub / github.com/chengsen/PyTorch_TextGCN / forward

Method forward

layer.py:30–36  ·  view source on GitHub ↗
(self, infeatn, adj)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected