Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Dec 6, 2023
1 parent e1c38f8 commit 91fbde4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torchrl/modules/tensordict_module/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ def _lstm(self, x, hx):
x_t = F.dropout(_h_t, p=self.dropout, training=self.training)
else: # No dropout after the last layer
x_t = _h_t

h_t = h_t_out
c_t = c_t_out
outputs.append(x_t)

outputs = torch.stack(outputs, dim=1)
Expand Down

0 comments on commit 91fbde4

Please sign in to comment.