提交 a4361567 authored 作者: Frederic Bastien's avatar Frederic Bastien 提交者: Reyhane Askari

Use dict as we never iterate on it.

上级 3afa8c88
...@@ -737,8 +737,8 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa ...@@ -737,8 +737,8 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa
self.fgraph = fgraph self.fgraph = fgraph
self.destroyers = OrderedSet() # set of Apply instances with non-null destroy_map self.destroyers = OrderedSet() # set of Apply instances with non-null destroy_map
self.view_i = OrderedDict() # variable -> variable used in calculation self.view_i = {} # variable -> variable used in calculation
self.view_o = OrderedDict() # variable -> set of variables that use this one as a direct input self.view_o = {} # variable -> set of variables that use this one as a direct input
# clients: how many times does an apply use a given variable # clients: how many times does an apply use a given variable
self.clients = OrderedDict() # variable -> apply -> ninputs self.clients = OrderedDict() # variable -> apply -> ninputs
self.stale_droot = True self.stale_droot = True
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论