Skip to content

Commit

Permalink
Warning of fallback only the first time for cudnn_pooling_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
sguada committed Dec 21, 2014
1 parent 3e167c1 commit c93958a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/caffe/layers/cudnn_pooling_layer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void CuDNNPoolingLayer<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom,
vector<Blob<Dtype>*>* top) {
// Fallback to Caffe for padded pooling, max top mask.
if ((this->pad_h_ > 0 || this->pad_w_ > 0) || (*top).size() > 1) {
LOG(WARNING) << "Falling back to standard Caffe for padded pooling.";
LOG_FIRST_N(WARNING,1) << "Falling back to standard Caffe for padded pooling.";
return PoolingLayer<Dtype>::Forward_gpu(bottom, top);
}

Expand All @@ -33,7 +33,7 @@ void CuDNNPoolingLayer<Dtype>::Backward_gpu(const vector<Blob<Dtype>*>& top,

// Fallback to Caffe for padded pooling, max top mask.
if ((this->pad_h_ > 0 || this->pad_w_ > 0) || top.size() > 1) {
LOG(WARNING) << "Falling back to standard Caffe for padded pooling.";
LOG_FIRST_N(WARNING,1) << "Falling back to standard Caffe for padded pooling.";
return PoolingLayer<Dtype>::Backward_gpu(top, propagate_down, bottom);
}

Expand Down

0 comments on commit c93958a

Please sign in to comment.