# HG changeset patch # User James Bergstra # Date 1282672469 14400 # Node ID 043aa1b748a7e5234655365d0d2708d0a3ffaebf # Parent bee0ca674b2bd87029af52b92f29035c8a48a7c0 mcRBM - comment to as_shared diff -r bee0ca674b2b -r 043aa1b748a7 pylearn/algorithms/mcRBM.py --- a/pylearn/algorithms/mcRBM.py Tue Aug 24 13:53:29 2010 -0400 +++ b/pylearn/algorithms/mcRBM.py Tue Aug 24 13:54:29 2010 -0400 @@ -212,6 +212,8 @@ updates = [(p, p - plr * gp) for (plr, p, gp) in zip(lr, params, grads)] return updates +# this is a little hack, probably should be removed +# The logic about casting things to shared vars is busted anyway (wrt pickling) def as_shared(x, name=None, dtype=floatX): if hasattr(x, 'type'): return x