Theano/Theano — pull request #1770 by nouiz (2014-03-17 01:41:24+00:00)
Title: Bug and crash fix in fast_compile

Reintroduce the DestroyHandler in some inplace opt. It was workig fine in normal mode as it is introduced automatically.

But now we introduce it in inplace opt directly as some tests use the default mode + some inplace opt end ended up without the destroyhandler with some recent changes.

TODO: for safely, we should create a new opt that is always registered at the end that check that the destroy handler is their or their is no inplace op.