提交 b582684a authored 作者: Frederic's avatar Frederic

Make the test code as the tutorial code.

上级 23de37d3
...@@ -585,7 +585,7 @@ class T_examples(unittest.TestCase): ...@@ -585,7 +585,7 @@ class T_examples(unittest.TestCase):
from theano import shared from theano import shared
# Force the dtype to int64 to work correctly on 32 bit computer. # Force the dtype to int64 to work correctly on 32 bit computer.
# Otherwise, it create by default a int32 on 32 bit computer. # Otherwise, it create by default a int32 on 32 bit computer.
state = shared(numpy.int64(0)) state = shared(0)
inc = T.iscalar('inc') inc = T.iscalar('inc')
accumulator = function([inc], state, updates=[(state, state+inc)]) accumulator = function([inc], state, updates=[(state, state+inc)])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论