We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2249391 commit b156a6aCopy full SHA for b156a6a
time_sequence_prediction/train.py
@@ -32,7 +32,7 @@ def forward(self, input, future = 0):
32
h_t2, c_t2 = self.lstm2(h_t, (h_t2, c_t2))
33
output = self.linear(h_t2)
34
outputs += [output]
35
- outputs = torch.stack(outputs, 1).squeeze(2)
+ outputs = torch.cat(outputs, dim=1)
36
return outputs
37
38
0 commit comments