def fgraph_of(*exprs):
 outs = list(map(theano_code, exprs))
 ins = theano.gof.graph.inputs(outs)
 (ins, outs) = theano.gof.graph.clone(ins, outs)
 return theano.gof.FunctionGraph(ins, outs)

def fgraph_of ( * exprs ) : outs = list ( map ( theano_code , exprs ) ) ins = theano . gof . graph . inputs ( outs ) ( ins , outs ) = theano . gof . graph . clone ( ins , outs ) return theano . gof . FunctionGraph ( ins , outs )
transform sympy expressions into theano computation .