Suppose I have implemented the following function in Theano:
import theano.tensor as T
from theano import function
x = T.dscalar('x')
y = T.dscalar('y')
z = x + y
f = function([x, y], z)
When I try to run it a graph of computations is constructed, the function gets optimized and compiled.
How can I reuse this compiled chunk of code from within a Python script and/or a C++ application?
EDIT: The goal is to construct a deep learning network and reuse it in a final C++ app.