提交 efe74ef8 authored 作者: Olivier Mastropietro's avatar Olivier Mastropietro

Changes for readability and fix in list comprehension

上级 b3c0df81
......@@ -269,7 +269,8 @@ class T_function(unittest.TestCase):
ori_storages = storage_map_ori.values()
l = [val for key, val in storage_map_cpy.items()
if key not in i_o_variables or isinstance(key, theano.tensor.Constant)]
self.assertTrue(any([val is s for val in l for s in ori_storages]))
for storage in l:
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,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论