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

Method init_hidden

AutoML/darts-master/rnn/model.py:157–159  ·  view source on GitHub ↗
(self, bsz)

Source from the content-addressed store, hash-verified

155 return model_output, hidden
156
157 def init_hidden(self, bsz):
158 weight = next(self.parameters()).data
159 return [Variable(weight.new(1, bsz, self.nhid).zero_())]
160

Callers 5

evaluateFunction · 0.80
trainFunction · 0.80
evaluateFunction · 0.80
evaluateFunction · 0.80
trainFunction · 0.80

Calls 1

newMethod · 0.45

Tested by 1

evaluateFunction · 0.64