padding for max pooling
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 5 Jun 2014 17:53:42 +0000 (10:53 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Sun, 8 Jun 2014 05:55:48 +0000 (22:55 -0700)
commit0d257e431404ad11df48816b85a94898bc86bf13
treeccd38f917ada75fb3e93fce50689cf2c1830ec98
parent2672c2f82d008e80e236eb584cc9eb1e6a85a355
padding for max pooling

Max pooling pads by -inf if the padding parameter is set.

Padding for pooling, like padding for convolution, can preserve the
dimensions of the bottom at the top. By setting the padding to
floor(kernel_size / 2) the top output is the "same" instead of the
"valid" part of the bottom input.
src/caffe/layers/pooling_layer.cpp
src/caffe/layers/pooling_layer.cu
src/caffe/proto/caffe.proto