happynear / happynear/caffe-windows
make pycaffe error
- Dominant language
- C++
- Stars
- 1.3k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
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::GetLearningRate() [with Dtype = float]' is protected
Dtype GetLearningRate();
^
python/caffe/_caffe.cpp:520:48: error: within this context
.add_property("lr", &SGDSolver::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?
Contributor guide
Assessment
This issue has not been assessed yet.