Theano/Theano — pull request #2136 by abergeron (2014-09-26 17:05:33+00:00)
Title: Fix blocksparse optimization that could give bad results in some cases

This changes the way "inplace" optimization for SparseBlock{Gemv,Outer}SS works. It makes it much safer for unusual graphs and add support for add along with sub.

However due to these changes, it makes avoiding the Alloc the responsability of other optimizations (local_alloc_elemwise), which are not enabled by default and are highly recommended. Use the flag `optimizer_including=local_alloc_elemwise` to enable it.