Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
evaluate
Function · 0.80
train
Function · 0.80
evaluate
Function · 0.80
evaluate
Function · 0.80
train
Function · 0.80
Calls
1
new
Method · 0.45
Tested by
1
evaluate
Function · 0.64