Skip to content

Commit 74e1d35

Browse files
committed
remove warning about updating an OrderedDict with a dict.
1 parent 560afd8 commit 74e1d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/rnnrbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def __init__(self, n_hidden=150, n_hidden_recurrent=100, lr=0.001,
196196
n_hidden_recurrent)
197197

198198
gradient = T.grad(cost, params, consider_constant=[v_sample])
199-
updates_train.update(dict((p, p - lr * g) for p, g in zip(params,
199+
updates_train.update(((p, p - lr * g) for p, g in zip(params,
200200
gradient)))
201201
self.train_function = theano.function([v], monitor,
202202
updates=updates_train)

0 commit comments

Comments
 (0)