fix broken DeconvolutionLayer GPU backward caused by typo
authorJonathan L Long <jonlong@cs.berkeley.edu>
Sun, 20 Sep 2015 21:20:28 +0000 (14:20 -0700)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Sun, 20 Sep 2015 21:20:28 +0000 (14:20 -0700)
src/caffe/layers/deconv_layer.cu

index ea83f56..5dbdcc3 100644 (file)
@@ -51,7 +51,7 @@ void DeconvolutionLayer<Dtype>::Backward_gpu(const vector<Blob<Dtype>*>& top,
         }
         // gradient w.r.t. bottom data, if necessary.
         if (propagate_down[i]) {
-          this->forward_gpu_gemm(top_diff + this->top_dim_, weight,
+          this->forward_gpu_gemm(top_diff + n * this->top_dim_, weight,
               bottom_diff + n * this->bottom_dim_,
               this->param_propagate_down_[0]);
         }