cudnn.hpp:127:41: error: too few arguments to function ‘cudnnStatus_t cudnnSetPooling2dDescriptor

原文地址为: cudnn.hpp:127:41: error: too few arguments to function ‘cudnnStatus_t cudnnSetPooling2dDescriptor

請注意,本類僅僅是記錄開發過程中遇到對問題,可能會亂貼代碼,亂貼圖,亂貼報錯信息,不保證能解決問題,以及有優美的排版,後面有時間我會重新整理的。

編譯caffe-fast-rcnn時的問題,主要原因是caffe版本太低,而我的cuda,cudnn版本太高,升級caffe版本即可。
GitHub上的解決方案,點這裏
下面是抄的GitHub上面的

升級caffe

cd caffe-fast-rcnn
git remote add caffe https://github.com/BVLC/caffe.git
git fetch caffe
git merge -X theirs caffe/master

移除某些可能有問題的地方

在include/caffe/layers/python_layer.hpp中
移除 self_.attr("phase") = static_cast<int>(this->phase_);

編譯

mkdir build && cd build
cmake ..
make all -j8
make pycaffe -j8

转载请注明本文地址: cudnn.hpp:127:41: error: too few arguments to function ‘cudnnStatus_t cudnnSetPooling2dDescriptor

猜你喜欢

转载自blog.csdn.net/dearbaba_1666/article/details/80841587