提交 51ff4318 authored 作者: ChienliMa's avatar ChienliMa

Restore deleted assertion of inputs

上级 809e6adb
......@@ -268,6 +268,12 @@ class T_function(unittest.TestCase):
if key not in i_o_variables or isinstance(key, theano.tensor.Constant):
self.assertTrue(any([ storage is s for s in ori_storages]))
# Assert storages of SharedVariable without updates are shared
for (input, _1, _2), here, there in zip(ori.indices,
ori.input_storage,
cpy.input_storage):
self.assertTrue(here.data is there.data)
def test_swap_SharedVariable(self):
x = T.fscalar('x')
# SharedVariable for tests, one of them has update
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论