Theano/Theano — pull request #1971 by nouiz (2014-07-16 19:16:38+00:00)
Title: [BUG] Do a copy when NumPy didn't allocate new memory.

An opt will remove this case if the repeat pattern is a constant 1.