提交 56599206 authored 作者: Ilya Dyachenko's avatar Ilya Dyachenko

Example code from tutorial page

http://deeplearning.net/software/theano/tutorial/examples.html fails with conversion error, this change fix the problem.
上级 d734be74
...@@ -254,7 +254,7 @@ for the purpose of one particular function. ...@@ -254,7 +254,7 @@ for the purpose of one particular function.
.. theano/tests/test_tutorial.py:T_examples.test_examples_8 .. theano/tests/test_tutorial.py:T_examples.test_examples_8
>>> fn_of_state = state * 2 + inc >>> fn_of_state = state * 2 + inc
>>> foo = T.lscalar() # the type (lscalar) must match the shared variable we >>> foo = T.iscalar() # the type (lscalar) must match the shared variable we
>>> # are replacing with the ``givens`` list >>> # are replacing with the ``givens`` list
>>> skip_shared = function([inc, foo], fn_of_state, >>> skip_shared = function([inc, foo], fn_of_state,
givens=[(state, foo)]) givens=[(state, foo)])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论