提交 3fa01756 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fix name to the new convention (t -> index)

上级 0e2561f8
...@@ -116,9 +116,9 @@ class ScanOp(PureOp): ...@@ -116,9 +116,9 @@ class ScanOp(PureOp):
if x.type != y.type: if x.type != y.type:
return False return False
s_inputs = [self.t] + self.inputs + self.lengths + self.switches s_ins = [self.index] + self.inputs + self.lengths + self.switches
o_inputs = [other.t] + other.inputs + other.lengths + other.switches o_ins = [other.index] + other.inputs + other.lengths + other.switches
givens = dict(izip(s_inputs, o_inputs)) givens = dict(izip(s_ins, o_ins))
# This part might be slow # This part might be slow
for x, y in izip(self.outputs, other.outputs): for x, y in izip(self.outputs, other.outputs):
if not gof.graph.is_same_graph(x, y, givens=givens): if not gof.graph.is_same_graph(x, y, givens=givens):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论