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

Method reset_parameters

layer.py:24–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.reset_parameters()
23
24 def reset_parameters(self):
25 stdv = 1. / math.sqrt(self.weight.size(1))
26 self.weight.data.uniform_(-stdv, stdv)
27 if self.bias is not None:
28 self.bias.data.uniform_(-stdv, stdv)
29
30 def forward(self, infeatn, adj):
31 support = th.spmm(infeatn, self.weight)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected