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 — Removed unused self.batch_size. · alabarga/DeepLearningTutorials@4bb1afc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • code
    • rbm.py
  • doc
    • rbm.txt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/rbm.py‎

Copy file name to clipboardExpand all lines: code/rbm.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ def __init__(self, input=None, n_visible=784, n_hidden=500, \
9393
# **** WARNING: It is not a good idea to put things in this list
9494
# other than shared variables created in this function.
9595
self.params = [self.W, self.hbias, self.vbias]
96-
# cast batch_size to floatX, because its type is int64,
97-
# and otherwise the gradients are upcasted to float64,
98-
# even when floatX == float32
99-
self.batch_size = T.cast(self.input.shape[0], dtype = theano.config.floatX)
10096

10197

10298
def free_energy(self, v_sample):
Collapse file

‎doc/rbm.txt‎

Copy file name to clipboardExpand all lines: doc/rbm.txt
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,6 @@ corresponding sigmoidal layer of an MLP network.
385385
# **** WARNING: It is not a good idea to put things in this list
386386
# other than shared variables created in this function.
387387
self.params = [self.W, self.hbias, self.vbias]
388-
# cast batch_size to floatX, because its type is int64,
389-
# and otherwise the gradients are upcasted to float64,
390-
# even when floatX == float32
391-
self.batch_size = T.cast(self.input.shape[0], dtype = theano.config.floatX)
392388

393389

394390
Next step is to define functions which construct the symbolic graph associated

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.