提交 cac6d8ca authored 作者: Sina Honari's avatar Sina Honari

changeing the GradGrad section, issue #2196

上级 9ef594de
...@@ -601,8 +601,6 @@ class DownsampleFactorMaxGradGrad(Op): ...@@ -601,8 +601,6 @@ class DownsampleFactorMaxGradGrad(Op):
z[0] = theano._asarray(z[0], dtype=x.dtype) z[0] = theano._asarray(z[0], dtype=x.dtype)
ggz = z[0] ggz = z[0]
## zz needs to be initialized with -inf for the following to work
ggz -= numpy.inf
#number of pooling output rows #number of pooling output rows
pr = ggz.shape[-2] pr = ggz.shape[-2]
#number of pooling output cols #number of pooling output cols
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论