Theano/Theano — pull request #578 by pascanur (2012-03-29 23:48:35+00:00)
Title: making the subtensor merge optimization work

This pull request fixes the problem pointed out by Graham.
I think a simpler test can be made that doesn't involve scan, just subtensors, hence I haven't added his example as a test. However a test would still be nice, and I'm going to add one hopefully soon.

The problmem is when you have subtensors of the form x[slice1, slice2][slice1] (i.e. the first subtensor has more slices then the second).