-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error #5
Comments
Thank you On Tue, Mar 15, 2016 at 7:48 PM, Saining Xie notifications@github.com
Shubham Agarwal |
I am facing the same problem, so can you tell me please how did you solve it ? |
Since my PC do not have any GPU, I commented the line that was throwing the error. It then worked fine. |
Which line do you mean please ? |
STUB_GPU_BACKWARD(SigmoidCrossEntropyLossLayer, Backward); in "src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp". |
This caused an error with CPU only compilation. See s9xie/hed#5
I'm using caffe in cpu only mode. when i do make all in hed-master, it is throwing up the following error. src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp:120:1: error: no ‘void caffe::SigmoidCrossEntropyLossLayer::Backward_gpu(const std::vector<caffe::Blob>&, const std::vector&, const std::vector<caffe::Blob>&)’ member function declared in class ‘caffe::SigmoidCrossEntropyLossLayer’ |
In src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp try removing lines: #ifdef CPU_ONLY STUB_GPU_BACKWARD(SigmoidCrossEntropyWeightedLossLayer, Backward); #endif it may helps. |
Hey I am impressed by your results and want to try your edge detection code. I am getting this error while doing make all for hed. No error when i install original Caffe.
In file included from ./include/caffe/common.hpp:19:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layer.hpp:9,
from src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp:5:
./include/caffe/util/device_alternate.hpp:30:39: error: no ‘void caffe::SigmoidCrossEntropyLossLayer::Backward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vector&, const std::vectorcaffe::Blob<Dtype_>&)’ member function declared in class ‘caffe::SigmoidCrossEntropyLossLayer’
const vector<Blob>& bottom) { NO_GPU; }
^
src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp:118:1: note: in expansion of macro ‘STUB_GPU_BACKWARD’
STUB_GPU_BACKWARD(SigmoidCrossEntropyLossLayer, Backward);
^
Makefile:518: recipe for target '.build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o' failed
make: ** [.build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o] Error 1
The text was updated successfully, but these errors were encountered: