We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9706774 commit 7692c64Copy full SHA for 7692c64
code/ch16/ch16.ipynb
@@ -1633,7 +1633,7 @@
1633
"def reshape_data(sequence, batch_size, num_steps):\n",
1634
" mini_batch_length = batch_size * num_steps\n",
1635
" num_batches = int(len(sequence) / mini_batch_length)\n",
1636
- " if num_batches*minitot_batch_length + 1 > len(sequence):\n",
+ " if num_batches*mini_batch_length + 1 > len(sequence):\n",
1637
" num_batches = num_batches - 1\n",
1638
" ## Truncate the sequence at the end to get rid of \n",
1639
" ## remaining charcaters that do not make a full batch\n",
@@ -2866,7 +2866,7 @@
2866
"name": "python",
2867
"nbconvert_exporter": "python",
2868
"pygments_lexer": "ipython3",
2869
- "version": "3.6.4"
+ "version": "3.6.6"
2870
},
2871
"toc": {
2872
"nav_menu": {},
0 commit comments