Mercurial > pylearn
diff pylearn/sampling/tests/test_mcmc.py @ 1447:fbe470217937
Use .get_value() and .set_value() of shared instead of the .value property
author | Pascal Lamblin <lamblinp@iro.umontreal.ca> |
---|---|
date | Wed, 16 Mar 2011 20:20:02 -0400 |
parents | 492473059b37 |
children |
line wrap: on
line diff
--- a/pylearn/sampling/tests/test_mcmc.py Tue Mar 08 12:50:37 2011 -0500 +++ b/pylearn/sampling/tests/test_mcmc.py Wed Mar 16 20:20:02 2011 -0400 @@ -22,7 +22,7 @@ position = shared(rng.randn(batchsize, 2).astype(theano.config.floatX)) sampler = sampler_cls([position], gaussian_energy) - print 'initial position', position.value + print 'initial position', position.get_value(borrow=True) print 'initial stepsize', sampler.stepsize # DRAW SAMPLES