Skip to content

Commit

Permalink
remove warning about updating an OrderedDict with a dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
nouiz committed Feb 8, 2013
1 parent 560afd8 commit 74e1d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/rnnrbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def __init__(self, n_hidden=150, n_hidden_recurrent=100, lr=0.001,
n_hidden_recurrent)

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

0 comments on commit 74e1d35

Please sign in to comment.