Fix wrong indices order in GpuSubtensor c_code().
Precompile some variant of Reduction kernel during Theano compilation.
Add GpuReshape in the new gpu back-end.
Move Flatten to the new GPU back-end by reusing reshape.