提交 e220e10e authored 作者: Hengjean's avatar Hengjean 提交者: Frederic

Fixed same computation bug

上级 bee1fe46
...@@ -436,7 +436,7 @@ def equal_computations(xs, ys, in_xs=None, in_ys=None): ...@@ -436,7 +436,7 @@ def equal_computations(xs, ys, in_xs=None, in_ys=None):
while idx < n_nodes: while idx < n_nodes:
nd_x = nds_x[idx] nd_x = nds_x[idx]
nd_y = nds_y[idx] nd_y = nds_y[idx]
if nd_x.op != nd_y.op: if not nd_x.op == nd_y.op:
return False return False
elif len(nd_x.inputs) != len(nd_y.inputs): elif len(nd_x.inputs) != len(nd_y.inputs):
return False return False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论