提交 47ff978d authored 作者: ChienliMa's avatar ChienliMa

Delete test for whether output_storage is shared. For they are bound to be…

Delete test for whether output_storage is shared. For they are bound to be shared through shared intermediate storages.
上级 f4fb1e57
...@@ -265,11 +265,8 @@ class T_function(unittest.TestCase): ...@@ -265,11 +265,8 @@ class T_function(unittest.TestCase):
ori_storages = storage_map_ori.values() ori_storages = storage_map_ori.values()
for key in storage_map_cpy.keys(): for key in storage_map_cpy.keys():
storage = storage_map_cpy[key] storage = storage_map_cpy[key]
storage_is_shared = any([ storage is s for s in ori_storages])
if key not in i_o_variables or isinstance(key, theano.tensor.Constant): if key not in i_o_variables or isinstance(key, theano.tensor.Constant):
self.assertTrue(storage_is_shared) self.assertTrue(any([ storage is s for s in ori_storages]))
elif key in fgraph_cpy.outputs:
self.assertFalse(storage_is_shared)
# Assert storages of SharedVariable without updates are shared # Assert storages of SharedVariable without updates are shared
for (input, _1, _2), here, there in zip(ori.indices, for (input, _1, _2), here, there in zip(ori.indices,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论