I just got this one. Here we always increment the input x, so if we are not inplace, the output won't be the right one( it will be a copy of x) and we will have changed the value of the input!

The fix is simple, just make a view of out instead of x.

After this fix, can you run all tests under theano/sandbox to be sure they all pass? travis-ci don't run gpu tests.