Theano/Theano — pull request #1089 by lamblin (2012-11-22 20:21:51+00:00)
Title: Make opt work when shape has been specified.

gh-938 turned out not to be needed when calling flatten() on the target, but that special case is useful if specify_shape(..., (1,)) is called instead.