提交 d78159e7 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix a test in python 32 bit

上级 0d21995f
...@@ -230,7 +230,7 @@ def test_partial_function_with_updates(): ...@@ -230,7 +230,7 @@ def test_partial_function_with_updates():
def check_updates(linker_name): def check_updates(linker_name):
x = tensor.lscalar('input') x = tensor.lscalar('input')
y = theano.shared(1, name='global') y = theano.shared(numpy.asarray(1, 'int64'), name='global')
f = theano.function([x], [x, x + 34], updates=[(y, x + 1)], mode=Mode( f = theano.function([x], [x, x + 34], updates=[(y, x + 1)], mode=Mode(
optimizer=None, linker=linker_name)) optimizer=None, linker=linker_name))
g = theano.function([x], [x - 6], updates=[(y, y + 3)], mode=Mode( g = theano.function([x], [x - 6], updates=[(y, y + 3)], mode=Mode(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论