Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
Remove self.b and self.n (d2l-ai#2340)
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-chen authored Nov 20, 2022
1 parent 9644d73 commit 030b3ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter_recurrent-neural-networks/language-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ we will randomly sample
pairs of input sequences and target sequences
in minibatches.
The following data loader randomly generates a minibatch from the dataset each time.
The argument `batch_size` specifies the number of subsequence examples (`self.b`) in each minibatch
and `num_steps` is the subsequence length in tokens (`self.n`).
The argument `batch_size` specifies the number of subsequence examples in each minibatch
and `num_steps` is the subsequence length in tokens.

```{.python .input n=6}
%%tab all
Expand Down

0 comments on commit 030b3ac

Please sign in to comment.