Mercurial > pylearn
changeset 987:043aa1b748a7
mcRBM - comment to as_shared
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Tue, 24 Aug 2010 13:54:29 -0400 |
parents | bee0ca674b2b |
children | fd243cb2bf0b |
files | pylearn/algorithms/mcRBM.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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