lisa-lab/pylearn2 — pull request #492 by mdenil (2013-12-16 23:00:21+00:00)
Title: Update for changed interface in Theano.

The behaviour of @local_optimizer has been changed recently in the Theano master branch.

See: https://github.com/Theano/Theano/commit/b5af34062e5226492e4a9f7ae05c3ebea46c3f84

You can see the effects of this change by installing Theano from github and running train.py on papers/maxout/mnist.yaml

The latest Theano release (rel-0.6) works fine, so if you plan to depend on released versions then you should ignore this PR. If pylearn2 should work with the Theano master branch then this change is needed.

There's also a similar line to the changes below at:

./pylearn2/sandbox/cuda_convnet/response_norm.py:374:@local_optimizer([None])

I don't know what the implications of calling @local_optimizer like this are, so I've left it alone, but it may also be effected.