Skip to content

Commit

Permalink
correcting DownsampleFactorMaxGrad, issue Theano#2196
Browse files Browse the repository at this point in the history
  • Loading branch information
Sina Honari committed Dec 17, 2014
1 parent bf64aee commit 9ef594d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theano/tensor/signal/downsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def perform(self, node, inp, out):
for row_ind in xrange(row_st, row_end):
for col_ind in xrange(col_st, col_end):
if (maxout[n, k, r, c] == x[n, k, row_ind, col_ind]):
gx[n, k, row_ind, col_ind] = gz[n, k, r, c]
gx[n, k, row_ind, col_ind] += gz[n, k, r, c]
gx_stg[0] = gx

def infer_shape(self, node, in_shapes):
Expand Down

0 comments on commit 9ef594d

Please sign in to comment.