提交 2c06ff26 authored 作者: Frederic Bastien's avatar Frederic Bastien

Now ConvOp.grad always execute unrolled if the option ask him too do so. This…

Now ConvOp.grad always execute unrolled if the option ask him too do so. This was working correctly when the hash code was not comparing the unroll level. When it started to do so, it was unrolling only for a part of the grad.
上级 bf4123cc
......@@ -186,7 +186,8 @@ class ConvOp(Op):
nkern = self.imshp[0]
imshp = N.hstack((self.nkern,self.outshp))
din = ConvOp(imshp, self.kshp, nkern, self.bsize,
1,1, output_mode=mode)(gz,filters)
1,1, output_mode=mode,
unroll_batch=un_b, unroll_kern=un_k)(gz,filters)
return [din, dw]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论