Skip to content

Commit 8f908f3

Browse files
committed
changed iround to round to keed the dtype to float. This use faster dot implementation and allow to move them to the gpu.
1 parent 0013ed8 commit 8f908f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/rbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def get_pseudo_likelihood_cost(self, updates):
241241
bit_i_idx = theano.shared(value=0, name = 'bit_i_idx')
242242

243243
# binarize the input image by rounding to nearest integer
244-
xi = T.iround(self.input)
244+
xi = T.round(self.input)
245245

246246
# calculate free energy for the given bit configuration
247247
fe_xi = self.free_energy(xi)

0 commit comments

Comments
 (0)