def fn(outs, mode=None, model=None, *args, **kwargs):
 model = modelcontext(model)
 return model.fn(outs, mode, *args, **kwargs)

def fn ( outs , mode = None , model = None , * args , ** kwargs ) : model = modelcontext ( model ) return model . fn ( outs , mode , * args , ** kwargs )
compiles a theano function which returns the values of outs and takes values of model vars as arguments .