Skip to content

Commit b156a6a

Browse files
momohattsoumith
authored andcommitted
Replace stack & squeeze with cat
1 parent 2249391 commit b156a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

time_sequence_prediction/train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def forward(self, input, future = 0):
3232
h_t2, c_t2 = self.lstm2(h_t, (h_t2, c_t2))
3333
output = self.linear(h_t2)
3434
outputs += [output]
35-
outputs = torch.stack(outputs, 1).squeeze(2)
35+
outputs = torch.cat(outputs, dim=1)
3636
return outputs
3737

3838

0 commit comments

Comments
 (0)