MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / init_weights

Method init_weights

AutoML/darts-master/rnn/model.py:123–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 self.cell_cls = cell_cls
122
123 def init_weights(self):
124 self.encoder.weight.data.uniform_(-INITRANGE, INITRANGE)
125 self.decoder.bias.data.fill_(0)
126 self.decoder.weight.data.uniform_(-INITRANGE, INITRANGE)
127
128 def forward(self, input, hidden, return_h=False):
129 batch_size = input.size(1)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected