原文:http://deeplearning.net/software/theano/introduction.html#introduction
Theano是一个Python库,你可以定义,优化,评价数学表达式,尤其是多维数组 (numpy.ndarray)
处理具有大量数据的问题时,可以与C的速度媲美,通过利用GPU,甚至可以超过CPU上的C好几个数量级
有些任务中,复杂的数学表达式需要被重复评价,并且评价的速度也很关键,对于这样的任务,CAS和优化编译的结合就有其有用
Theano的编译器应用了许多优化,可以改变符号表达式的复杂度
这里有个如何用Theano的例子
import theano
from theano import tensor
# declare two symbolic floating-point scalars
a = tensor.dscalar()
b = tensor.dscalar()
# create a simple expression
c = a + b
# convert the expression into a callable object that takes (a,