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

Therer are many errors about "at_layer.cpp" and other layers #3

Closed
liuxi2018 opened this issue Apr 1, 2018 · 3 comments
Closed

Therer are many errors about "at_layer.cpp" and other layers #3

liuxi2018 opened this issue Apr 1, 2018 · 3 comments

Comments

@liuxi2018
Copy link

liuxi2018 commented Apr 1, 2018

Hi He:
I git clone your code, when I make your code, we encounter many errors. Is the code you have released is incomplete or other reasons? Some of the errors are as follows:

src/caffe/layers/at_layer.cpp:18:20: error: request for member ‘output_h’ in ‘param’, which is of non-class type ‘const int’
output_H_ = param.output_h();
^
src/caffe/layers/at_layer.cpp:20:12: error: request for member ‘has_output_w’ in ‘param’, which is of non-class type ‘const int’
if (param.has_output_w()) {
^
src/caffe/layers/at_layer.cpp:21:21: error: request for member ‘output_w’ in ‘param’, which is of non-class type ‘const int’

/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 5 provided
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::allocator_type = std::allocator]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 5 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator]

@tonghe90
Copy link
Owner

tonghe90 commented Apr 1, 2018

Hi @liuxi2018 , is the Makefile.config contain CUSTOM_CXX := g++ -std=c++11?

@donglin8506
Copy link

Very useful,Thanks very much !@tonghe90

@Tsui-Xianjun
Copy link

how the question to be solved?

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

4 participants