🐛 lstm fix

This commit is contained in:
Varuna Jayasiri
2020-12-16 11:55:36 +05:30
parent c269c65655
commit 2c1e6c721d

View File

@ -122,7 +122,7 @@ class LSTM(Module):
(h, c) = state
# Reverse stack the tensors to get the states of each layer <br />
# 📝 You can just work with the tensor itself but this is easier to debug
h, c = torch.unbind(h), torch.unbind(c)
h, c = list(torch.unbind(h)), list(torch.unbind(c))
# Array to collect the outputs of the final layer at each time step.
out = []