MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / reset_parameters

Method reset_parameters

monai/networks/layers/simplelayers.py:640–643  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

638 self.reset_parameters()
639
640 def reset_parameters(self):
641 stdv = 1.0 / math.sqrt(self.state_size)
642 for weight in self.parameters():
643 weight.data.uniform_(-stdv, +stdv)
644
645 def forward(self, input, state):
646 return LLTMFunction.apply(input, self.weights, self.bias, *state)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected