Skip to content
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

Makefile:581: recipe for target '.build_release/src/caffe/layers/reverse_axis_layer.o' failed #23

Open
curiosity2 opened this issue Sep 23, 2018 · 4 comments

Comments

@curiosity2
Copy link

curiosity2 commented Sep 23, 2018

When compiling the origional caffe code, I have the same problem as #15 .
Then I compile your caffe code, but there is an error. I have no idea how to solve it, can you help me? Thank you.

./include/caffe/util/device_alternate.hpp:14:15: error: expected initializer before ‘<’ token
void classname::Forward_gpu(const vector<Blob>& bottom,
^
src/caffe/layers/reverse_axis_layer.cpp:61:1: note: in expansion of macro ‘STUB_GPU’
STUB_GPU(ReverseLayer);
^~~~~~~~
./include/caffe/util/device_alternate.hpp:17:15: error: expected initializer before ‘<’ token
void classname::Backward_gpu(const vector<Blob
>& top,
^
src/caffe/layers/reverse_axis_layer.cpp:61:1: note: in expansion of macro ‘STUB_GPU’
STUB_GPU(ReverseLayer);
^~~~~~~~
Makefile:581: recipe for target '.build_release/src/caffe/layers/reverse_axis_layer.o' failed
make: *** [.build_release/src/caffe/layers/reverse_axis_layer.o] Error 1
make: *** Waiting for unfinished jobs....

@tonghe90
Copy link
Owner

tonghe90 commented Oct 2, 2018

@curiosity2 , Hi can you remove the reverse_layer.cu file and related head file and registration information? Or you can add related layer, like att_lstm layer, reverse layer, etc to your own version caffe

@AndresPMD
Copy link

@tonghe90 I have the same problem. It was not resolved by deleting the reverse_layer.cu file...

@AndresPMD
Copy link

Here is the log:

CXX src/caffe/layers/crop_layer.cpp
In file included from ./include/caffe/common.hpp:19:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layers/reverse_axis_layer.hpp:6,
from src/caffe/layers/bkp/reverse_axis_layer.cpp:1:
./include/caffe/util/device_alternate.hpp:14:15: error: expected initializer before ‘<’ token
void classname::Forward_gpu(const vector<Blob>& bottom,
^
src/caffe/layers/bkp/reverse_axis_layer.cpp:61:1: note: in expansion of macro ‘STUB_GPU’
STUB_GPU(ReverseLayer);
^
./include/caffe/util/device_alternate.hpp:17:15: error: expected initializer before ‘<’ token
void classname::Backward_gpu(const vector<Blob
>& top,
^
src/caffe/layers/bkp/reverse_axis_layer.cpp:61:1: note: in expansion of macro ‘STUB_GPU’
STUB_GPU(ReverseLayer);
^
Makefile:581: recipe for target '.build_release/src/caffe/layers/bkp/reverse_axis_layer.o' failed
make: *** [.build_release/src/caffe/layers/bkp/reverse_axis_layer.o] Error 1
make: *** Waiting for unfinished jobs....

@tonghe90
Copy link
Owner

tonghe90 commented Nov 7, 2018

@curiosity2, Have you solved the problem? I can't replicate the problem, So, could you be more specific how to reproduce this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants