GeezerVison is showing github.com — Removed unused self.batch_size. · alabarga/DeepLearningTutorials@4bb1afc
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: code/rbm.py -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -93,10 +93,6 @@ def __init__(self, input=None, n_visible=784, n_hidden=500, \ |
93 | 93 | # **** WARNING: It is not a good idea to put things in this list |
94 | 94 | # other than shared variables created in this function. |
95 | 95 | 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) |
100 | 96 |
|
101 | 97 |
|
102 | 98 | def free_energy(self, v_sample): |
|
Collapse file
Copy file name to clipboardExpand all lines: doc/rbm.txt -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -385,10 +385,6 @@ corresponding sigmoidal layer of an MLP network. |
385 | 385 | # **** WARNING: It is not a good idea to put things in this list |
386 | 386 | # other than shared variables created in this function. |
387 | 387 | 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) |
392 | 388 |
|
393 | 389 |
|
394 | 390 | Next step is to define functions which construct the symbolic graph associated |
|