GeezerVison is showing github.com — fixed minor typos in gettingstarted.txt · willfu/DeepLearningTutorials@9e278c1
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/gettingstarted.txt +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -104,7 +104,7 @@ MNIST Dataset |
104 | 104 | Since now the data is in one variable, and a minibatch is defined as a |
105 | 105 | slice of that variable, it comes more natural to define a minibatch by |
106 | 106 | indicating its index and its size. In our setup the batch size stays constant |
107 | | - through out the execution of the code, therefore a function will actually |
| 107 | + throughout the execution of the code, therefore a function will actually |
108 | 108 | require only the index to identify on which datapoints to work. |
109 | 109 | The code below shows how to store your data and how to |
110 | 110 | access a minibatch: |
@@ -141,8 +141,8 @@ MNIST Dataset |
141 | 141 |
|
142 | 142 | # accessing the third minibatch of the training set |
143 | 143 |
|
144 | | - data = train_set_x[2 * 500: 3 * 500] |
145 | | - label = train_set_y[2 * 500: 3 * 500] |
| 144 | + data = train_set_x[2 * batch_size: 3 * batch_size] |
| 145 | + label = train_set_y[2 * batch_size: 3 * batch_size] |
146 | 146 |
|
147 | 147 |
|
148 | 148 | The data has to be stored as floats on the GPU ( the right |
|