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

Change start order of the new io_toposort() to fix a doctest by having the new…

Change start order of the new io_toposort() to fix a doctest by having the new order more similar to the old one.
上级 8452d175
...@@ -990,7 +990,7 @@ def io_toposort(inputs, outputs, orderings=None, clients=None): ...@@ -990,7 +990,7 @@ def io_toposort(inputs, outputs, orderings=None, clients=None):
# Do a new stack implementation with the vm algo. # Do a new stack implementation with the vm algo.
# This will change the order returned. # This will change the order returned.
computed = set(inputs) computed = set(inputs)
todo = [o.owner for o in outputs if o.owner] todo = [o.owner for o in reversed(outputs) if o.owner]
order = [] order = []
while todo: while todo:
cur = todo.pop() cur = todo.pop()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论