提交 31b07c03 authored 作者: Frederic's avatar Frederic

Fix Scan.grad that we making a too long scan sequence.

This in combination with PushOutSeqScan make shape error! as PushOutSeqScan make the assumption that was inforced by the scan() fct that all input sequence have the same length. TODO: make a test for this.
上级 d8d752f7
...@@ -1582,7 +1582,7 @@ class Scan(PureOp): ...@@ -1582,7 +1582,7 @@ class Scan(PureOp):
outer_inp_seqs.append(x[::-1]) outer_inp_seqs.append(x[::-1])
outer_inp_seqs += [x[::-1] for x in self.outer_mitsot_outs(outs)] outer_inp_seqs += [x[::-1] for x in self.outer_mitsot_outs(outs)]
outer_inp_seqs += [x[::-1] for x in self.outer_sitsot_outs(outs)] outer_inp_seqs += [x[::-1][:-1] for x in self.outer_sitsot_outs(outs)]
outer_inp_seqs += [x[::-1] for x in self.outer_nitsot_outs(outs)] outer_inp_seqs += [x[::-1] for x in self.outer_nitsot_outs(outs)]
inner_inp_seqs = self.inner_seqs(self_inputs) inner_inp_seqs = self.inner_seqs(self_inputs)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论