提交 b8e4bc5c authored 作者: Laurent Dinh's avatar Laurent Dinh

Correction of the tutorial.

上级 55b1c377
......@@ -140,7 +140,7 @@ The full documentation can be found in the library: :ref:`Scan <lib_scan>`.
X = T.matrix("X")
results, updates = theano.scan(lambda i, j, t_f:T.cast(X[i,j]+t_f, floatX), \
sequences=[T.arange(X.shape[0]), T.arange(X.shape[1])], \
outputs_info=np.zeros_like(0., dtype=floatX))
outputs_info=np.asarray(0., dtype=floatX))
result = results[-1]
compute_trace = theano.function(inputs = [X], outputs=[result])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论