Skip to content

Commit 2573754

Browse files
committed
added name to theano function.
1 parent 70dbb0c commit 2573754

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

code/rbm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ def test_rbm(learning_rate=0.1, training_epochs = 15,
360360
# the purpose of train_rbm is solely to update the RBM parameters
361361
train_rbm = theano.function([index], cost,
362362
updates = updates,
363-
givens = { x: train_set_x[index*batch_size:(index+1)*batch_size]})
363+
givens = { x: train_set_x[index*batch_size:(index+1)*batch_size]},
364+
name = 'train_rbm')
364365

365366
plotting_time = 0.
366367
start_time = time.clock()
@@ -423,7 +424,8 @@ def test_rbm(learning_rate=0.1, training_epochs = 15,
423424
# we generate the "mean field" activations for plotting and the actual
424425
# samples for reinitializing the state of our persistent chain
425426
sample_fn = theano.function([], [vis_mfs[-1], vis_samples[-1]],
426-
updates = updates)
427+
updates = updates,
428+
name = 'sample_fn')
427429

428430

429431
# create a space to store the image for plotting ( we need to leave

0 commit comments

Comments
 (0)