提交 4ea37b8d authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Actually compile and run the grad scan node.

上级 02514c6e
......@@ -765,4 +765,6 @@ def test_gradient_scan():
x = tensor.vector(dtype='float32')
values, updates = theano.scan(one_step, outputs_info=x, n_steps=10)
theano.grad(tensor.sum(values[-1]), w)
gw = theano.grad(tensor.sum(values[-1]), w)
f = theano.function([x], gw)
f(numpy.arange(1, dtype='float32'))
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论