lisa-lab/pylearn2 — pull request #764 by SuperElectric (2014-03-28 18:29:22+00:00)
Title: Added support for CUDA arrays in function space._cast().

space._cast(batch, dtype) no longer throws an exception when given a numeric or symbolic CudaNdArray. Instead, it returns the batch as-is (no-op) if dtype==theano.config.floatX, and raises a TypeError otherwise.