Skip to content

Commit

Permalink
Update torchrl/modules/tensordict_module/rnn.py
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Moens <vincentmoens@gmail.com>
  • Loading branch information
albertbou92 and vmoens authored Dec 1, 2023
1 parent 1ccfafa commit 9e84a04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torchrl/modules/tensordict_module/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ def lstm_cell(self, x, hx, cx):


class LSTM(nn.LSTM):
"""A module that runs multiple steps of a multi-layer LSTM and is only coded in Python."""
"""A module that runs multiple steps of a multi-layer LSTM and is only coded in Python.
"""
__doc__ += nn.LSTM.__doc__

def __init__(
self,
Expand Down

0 comments on commit 9e84a04

Please sign in to comment.