From 3ea9ef279b697c1f18fc29dd11d8793f9f366976 Mon Sep 17 00:00:00 2001 From: Sina Honari Date: Wed, 3 Dec 2014 23:25:16 -0500 Subject: [PATCH] changeing the GradGrad section, issue #2196 --- theano/tensor/signal/downsample.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/theano/tensor/signal/downsample.py b/theano/tensor/signal/downsample.py index f18ae3067cd..fb312eb968b 100644 --- a/theano/tensor/signal/downsample.py +++ b/theano/tensor/signal/downsample.py @@ -601,8 +601,6 @@ def perform(self, node, inp, out): z[0] = theano._asarray(z[0], dtype=x.dtype) ggz = z[0] - ## zz needs to be initialized with -inf for the following to work - ggz -= numpy.inf #number of pooling output rows pr = ggz.shape[-2] #number of pooling output cols