theano tutorial学习笔记(一)
algebra
标量求和
>>> 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)
x不是dscalar的实例,而是TensorVar
原创
2015-10-06 21:48:09 ·
1756 阅读 ·
0 评论