[docs] Fix truncated_bptt_steps docs (#7846)

This commit is contained in:
Guillaume Tauzin 2021-06-06 20:31:14 +02:00 committed by GitHub
parent 10839376e2
commit 1da1898d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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