Skip to content

Commit 57a80fd

Browse files
committed
Give name to theano function
1 parent 146eb2a commit 57a80fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

code/rbm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ def get_cost_updates(self, lr=0.1, persistent=None, k=1):
257257
# chain_start is the initial state corresponding to the
258258
# 6th output
259259
outputs_info=[None, None, None, None, None, chain_start],
260-
n_steps=k
260+
n_steps=k,
261+
name="gibbs_hvh"
261262
)
262263
# start-snippet-3
263264
# determine gradients on RBM parameters
@@ -496,7 +497,8 @@ def test_rbm(learning_rate=0.1, training_epochs=15,
496497
) = theano.scan(
497498
rbm.gibbs_vhv,
498499
outputs_info=[None, None, None, None, None, persistent_vis_chain],
499-
n_steps=plot_every
500+
n_steps=plot_every,
501+
name="gibbs_vhv"
500502
)
501503

502504
# add to updates the shared variable that takes care of our persistent

0 commit comments

Comments
 (0)