GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • doc
    • gettingstarted.txt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/gettingstarted.txt‎

Copy file name to clipboardExpand all lines: doc/gettingstarted.txt
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ MNIST Dataset
104104
Since now the data is in one variable, and a minibatch is defined as a
105105
slice of that variable, it comes more natural to define a minibatch by
106106
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
108108
require only the index to identify on which datapoints to work.
109109
The code below shows how to store your data and how to
110110
access a minibatch:
@@ -141,8 +141,8 @@ MNIST Dataset
141141

142142
# accessing the third minibatch of the training set
143143

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]
146146

147147

148148
The data has to be stored as floats on the GPU ( the right

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.