avoid dangerous state in pooling layer CUDA kernels
authorJonathan L Long <jonlong@cs.berkeley.edu>
Wed, 20 May 2015 05:41:50 +0000 (22:41 -0700)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Wed, 20 May 2015 06:41:00 +0000 (23:41 -0700)
commit7a8fcc763dc89e717a58319a77da9d9813a829c0
tree9ed02b6297f12d143bfb4b4f21eda857e7451eb3
parent8df472af7f0d475ce866055d0665086e093aaf0e
avoid dangerous state in pooling layer CUDA kernels

Previously, pointers were modified with the assumption that they would
only be modified once. While this is true so far in practice, the
introduction of CUDA_KERNEL_LOOP makes this a dangerous assumption.
src/caffe/layers/pooling_layer.cu