vlb/Theano — comment on commit 7b2a64e235eeb4aa2e32a110777ec5ac2df1120e
File: theano/tensor/opt.py line 1951
By nouiz:

f = theano.function(...)
nodes = f.maker.env.toposort() # list of apply node in the optimized graph.

assert any([True for node in nodes if isinstance(node.op, CLASS) and node.op.inplace])