提交 90d9bb5f authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fix bug caused by typos

上级 84026ef3
...@@ -1259,7 +1259,7 @@ class Scan(PureOp): ...@@ -1259,7 +1259,7 @@ class Scan(PureOp):
gmp = {} gmp = {}
consider_inps = [x for x in theano.gof.graph.inputs([y]) consider_inps = [x for x in theano.gof.graph.inputs([y])
if x in diff_inputs] if x in diff_inputs]
for x in conside_inps: for x in consider_inps:
try: try:
_gmp = gradient.grad_sources_inputs( _gmp = gradient.grad_sources_inputs(
[(y, g_y)], [(y, g_y)],
...@@ -1292,7 +1292,7 @@ class Scan(PureOp): ...@@ -1292,7 +1292,7 @@ class Scan(PureOp):
else: else:
e = len(self.tap_array[0]) e = len(self.tap_array[0])
p = iidx p = iidx
if node.inputs[iidx + 1] in self.outer_nitsot(node) if node.inputs[iidx + 1] in self.outer_nitsot(node):
return None return None
if node.inputs[iidx + 1] in self.outer_non_seqs(node): if node.inputs[iidx + 1] in self.outer_non_seqs(node):
loc_idx = self.outer_non_seqs(node).index( loc_idx = self.outer_non_seqs(node).index(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论