Context: CUDA9.0 Ubuntu18.04
I have tried modifying the _caffe.cpp file with its location of $CAFFE_ROOT/python/caffe
Modify the
* * *
Bp: : class_ < SGDSolver < Dtype >, bp: : outside the < Solver < Dtype > >,
315 from < SGDSolver < Dtype > >, boost: : noncopyable > (
316 "SGDSolver", bp: : init < string > ());
* * *
* * *
Bp: : class_ < SGDSolver < Dtype >, bp: : outside the < Solver < Dtype > >,
315 from < SGDSolver < Dtype > >, boost: : noncopyable > (
316 "SGDSolver", bp: : init < char * > ());
* * *
At least in my environment the problem was solved.