Skip to content

Commit 878f952

Browse files
author
Razvan Pascanu
committed
use floatX dtype for bias - fixed
1 parent f2d3749 commit 878f952

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/SdA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def __init__(self, n_visible= 784, n_hidden= 500, corruption_level = 0.1,\
213213
low = -numpy.sqrt(6./(n_hidden+n_visible)), \
214214
high = numpy.sqrt(6./(n_hidden+n_visible)), \
215215
size = (n_visible, n_hidden)), dtype = theano.config.floatX)
216-
initial_b = numpy.zeros(n_hidden)
216+
initial_b = numpy.zeros(n_hidden, dtype = theano.config.floatX)
217217

218218

219219
# theano shared variables for weights and biases

0 commit comments

Comments
 (0)