projects
/
platform
/
upstream
/
caffe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba046b
)
Missing param.pad condition for CUDNN pooling
author
Sergio
<sguada@gmail.com>
Sun, 5 Oct 2014 21:34:55 +0000
(14:34 -0700)
committer
Sergio
<sguada@gmail.com>
Sun, 5 Oct 2014 21:47:58 +0000
(14:47 -0700)
src/caffe/layer_factory.cpp
patch
|
blob
|
history
diff --git
a/src/caffe/layer_factory.cpp
b/src/caffe/layer_factory.cpp
index
8815ddd
..
6986354
100644
(file)
--- a/
src/caffe/layer_factory.cpp
+++ b/
src/caffe/layer_factory.cpp
@@
-47,7
+47,8
@@
Layer<Dtype>* GetPoolingLayer(const LayerParameter& param) {
#ifdef USE_CUDNN
} else if (engine == PoolingParameter_Engine_CUDNN) {
PoolingParameter p_param = param.pooling_param();
- if (p_param.pad_h() || p_param.pad_w() || param.top_size() > 1) {
+ if (p_param.pad() || p_param.pad_h() || p_param.pad_w() ||
+ param.top_size() > 1) {
LOG(INFO) << "CUDNN does not support padding or multiple tops. "
<< "Using Caffe's own pooling layer.";
return new PoolingLayer<Dtype>(param);