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 — Fix size in convnet comment · ldfaiztt/DeepLearningTutorials@70e0f7d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • code
    • convolutional_mlp.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/convolutional_mlp.py‎

Copy file name to clipboardExpand all lines: code/convolutional_mlp.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,9 @@ def evaluate_lenet5(learning_rate=0.1, n_epochs=200,
191191
)
192192

193193
# the HiddenLayer being fully-connected, it operates on 2D matrices of
194-
# shape (batch_size,num_pixels) (i.e matrix of rasterized images).
195-
# This will generate a matrix of shape (20,32*4*4) = (20,512)
194+
# shape (batch_size, num_pixels) (i.e matrix of rasterized images).
195+
# This will generate a matrix of shape (batch_size, nkerns[1] * 4 * 4),
196+
# or (500, 50 * 4 * 4) = (500, 800) with the default values.
196197
layer2_input = layer1.output.flatten(2)
197198

198199
# construct a fully-connected sigmoidal layer

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.