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

Method __init__

time_sequence_prediction/train.py:12–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class Sequence(nn.Module):
12 def __init__(self):
13 super(Sequence, self).__init__()
14 self.lstm1 = nn.LSTMCell(1, 51)
15 self.lstm2 = nn.LSTMCell(51, 51)
16 self.linear = nn.Linear(51, 1)
17
18 def forward(self, input, future = 0):
19 outputs = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected