caffe-windows icon indicating copy to clipboard operation
caffe-windows copied to clipboard

make pycaffe error

Open Yangel-hide opened this issue 7 years ago • 0 comments

When I make pycaffe in ubuntu16.04,it show error In file included from python/caffe/_caffe.cpp:20:0: ./include/caffe/sgd_solvers.hpp: In function 'void caffe::init_module__caffe()': ./include/caffe/sgd_solvers.hpp:28:9: error: 'Dtype caffe::SGDSolver<Dtype>::GetLearningRate() [with Dtype = float]' is protected Dtype GetLearningRate(); ^ python/caffe/_caffe.cpp:520:48: error: within this context .add_property("lr", &SGDSolver<Dtype>::GetLearningRate); ^ Makefile:508: recipe for target 'python/caffe/_caffe.so' failed make: *** [python/caffe/_caffe.so] Error 1 I find Dtype GetLearningRate(); is public member in BVLC/caffe, so I change it to public, the error disappears, Has anyone else encountered this problem? or It only appeared in linux?

Yangel-hide avatar Aug 02 '18 08:08 Yangel-hide