提交 21fac54d authored 作者: Razvan Pascanu's avatar Razvan Pascanu

bug in make_thunk

preparing for the cython code, I used to grab the wrong inputs ( it should be the node inputs not self.inputs)
上级 32638671
...@@ -395,9 +395,9 @@ class Scan(Op): ...@@ -395,9 +395,9 @@ class Scan(Op):
cython_mit_mot_out_slices[_d0,_d1] = \ cython_mit_mot_out_slices[_d0,_d1] = \
self.mit_mot_out_slices[_d0][_d1] self.mit_mot_out_slices[_d0][_d1]
vector_seqs = [ seq.ndim == 1 for seq in vector_seqs = [ seq.ndim == 1 for seq in
self.inputs[1:1+self.n_seqs ] ] node.inputs[1:1+self.n_seqs ] ]
vector_outs = [ arg.ndim ==1 for arg in vector_outs = [ arg.ndim ==1 for arg in
self.inputs[1+self.n_seqs: (1+self.n_seqs + node.inputs[1+self.n_seqs: (1+self.n_seqs +
self.n_outs)] ] self.n_outs)] ]
vector_outs += [ False]*self.n_nit_sot vector_outs += [ False]*self.n_nit_sot
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论