提交 6710d0c5 authored 作者: slefrancois's avatar slefrancois

added test for unused explicit input in test_copy_delete_updates

上级 4e787ee9
...@@ -366,6 +366,7 @@ class T_function(unittest.TestCase): ...@@ -366,6 +366,7 @@ class T_function(unittest.TestCase):
assert in1.value is in2.value assert in1.value is in2.value
def test_copy_delete_updates(self): def test_copy_delete_updates(self):
w = T.iscalar('w')
x = T.fscalar('x') x = T.fscalar('x')
# SharedVariable for tests, one of them has update # SharedVariable for tests, one of them has update
y = theano.shared(value=1, name='y') y = theano.shared(value=1, name='y')
...@@ -389,7 +390,7 @@ class T_function(unittest.TestCase): ...@@ -389,7 +390,7 @@ class T_function(unittest.TestCase):
ori = theano.function([x], x, mode=mode, updates={z: z * 2}) ori = theano.function([x], x, mode=mode, updates={z: z * 2})
cpy = ori.copy(delete_updates=True) cpy = ori.copy(delete_updates=True)
ori = theano.function([x, y], x, mode=mode, updates={z: z + y}) ori = theano.function([x, w], x, mode=mode, updates={z: z + w})
cpy = ori.copy(delete_updates=True) cpy = ori.copy(delete_updates=True)
def test_shared_state0(self): def test_shared_state0(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论