Skip to content

Commit

Permalink
[docs] Fix truncated_bptt_steps docs (#7846)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtauzin authored Jun 6, 2021
1 parent 1083937 commit 1da1898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/common/lightning_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ recurrent network trajectories."
def training_step(self, batch, batch_idx, hiddens):
# the training step must be updated to accept a ``hiddens`` argument
# hiddens are the hiddens from the previous truncated backprop step
out, hiddens = self.lstm(data, hiddens)
out, (hiddens, _) = self.lstm(data, hiddens)
return {
"loss": ...,
"hiddens": hiddens
Expand Down

0 comments on commit 1da1898

Please sign in to comment.