import numpy 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)numpy.allclose(f(16.3, 12.1), 28.4) 输出为truenumpy.allclose(z.eval({x:16.3, y:12.1}, 28.4)) 输出为true tensor:高维数组,T…