MCPcopy Create free account
hub / github.com/pytorch/examples / reset_parameters

Method reset_parameters

gat/main.py:59–64  ·  view source on GitHub ↗

Reinitialize learnable parameters.

(self)

Source from the content-addressed store, hash-verified

57
58
59 def reset_parameters(self):
60 """
61 Reinitialize learnable parameters.
62 """
63 nn.init.xavier_normal_(self.W)
64 nn.init.xavier_normal_(self.a)
65
66
67 def _get_attention_scores(self, h_transformed: torch.Tensor):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected