提交 a4c621af authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #1488 from flashus/master

FIX: Example code from tutorial page fails with conversion error
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论