def inplace_optimizer(f):
 dh_handler = dh.DestroyHandler
 requirements = ((lambda fgraph: fgraph.attach_feature(dh_handler())),)
 rval = FromFunctionOptimizer(f, requirements)
 rval.__name__ = f.__name__
 return rval

def inplace_optimizer ( f ) : dh_handler = dh . DestroyHandler requirements = ( ( lambda fgraph : fgraph . attach_feature ( dh_handler ( ) ) ) , ) rval = FromFunctionOptimizer ( f , requirements ) rval . __name__ = f . __name__ return rval
decorator for fromfunctionoptimizer .