提交 99efdef2 authored 作者: --global's avatar --global

Fix condition in equal_computations

上级 14555f72
......@@ -490,8 +490,8 @@ def equal_computations(xs, ys, in_xs=None, in_ys=None):
# Validate that each xs[i], ys[i] pair represents the same computation
for i in range(len(xs)):
if xs[0].owner:
# The case where xs and ys don't both have an owner
if xs[i].owner:
# The case where pairs of x[i]s and y[i]s don't both have an owner
# have already been adressed.
is_equal = compare_nodes(xs[i].owner, ys[i].owner)
if not is_equal:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论