Theano/Theano — pull request #2352 by lamblin (2014-12-17 21:37:35+00:00)
Title: Do not assume anything on the stride when dimension is 1

Also set the Python exception if an error is met.