Theano/Theano — pull request #903 by pascanur (2012-09-03 13:39:11+00:00)
Title: Enable gpu optimization to deal with outputs of different dtypes

This is related to the bug reported by Mark, and refers to the case when the outputs have different dtypes.
The scan allocates memory for all of them on GPU, even if the output is int64 and ends up with a type mismatch.