MCPcopy
hub / github.com/tkipf/pygcn / reset_parameters

Method reset_parameters

pygcn/layers.py:25–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected