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

hpp/cpp/cu files compile error #1

Open
leochli opened this issue Jul 19, 2017 · 11 comments
Open

hpp/cpp/cu files compile error #1

leochli opened this issue Jul 19, 2017 · 11 comments

Comments

@leochli
Copy link

leochli commented Jul 19, 2017

Hi @farmingyard ,
I am new to caffe. I got an error saying like "class caffe::ConvolutionParameter’ has no member named ‘kernel_size_size’" in conv_dw_layer.cpp when I'm trying to compile.

Any idea of this error?

FYI, I put the hpp file in caffe_root/inclide/caffe and caffe_root/inclide/caffe/layers. The cu and cpp files in caffe_root/src/caffe/layers. I cannot define it in caffe.proto because there's already a ConvolutionParameter option existing.

thanks!

@farmingyard
Copy link
Owner

Hi @LeoLee96 ,
You have no need to change proto file, because conv_dw layer use conv's ConvolutionParameter.
In the normal case, follow your action you can build successfully, I want to know that, can you build successfully before you adding these files?

@leochli
Copy link
Author

leochli commented Jul 19, 2017

Hi @farmingyard ,

I can build successfully without these files.

A piece of the error reads like:
/src/caffe/layers/conv_dw_layer.cpp: In member function ‘virtual void caffe::ConvolutionDepthwiseLayer::LayerSetUp(const std::vector<caffe::Blob>&, const std::vector<caffe::Blob>&)’:
/src/caffe/layers/conv_dw_layer.cpp:16:20: error: ‘class caffe::ConvolutionParameter’ has no member named ‘kernel_size_size’
if (conv_param.kernel_size_size() == 1)
^
/src/caffe/layers/conv_dw_layer.cpp:18:43: error: no matching function for call to ‘caffe::ConvolutionParameter::kernel_size(int)’
kernel_h_ = conv_param.kernel_size(0);
^

thanks!

@farmingyard
Copy link
Owner

@LeoLee96 Can you show me your caffe version or URL?

@leochli
Copy link
Author

leochli commented Jul 19, 2017

Hi @farmingyard ,
I have solved the problem. My caffe version is too old. I can compile the new layer after I update.
thanks a million!

@farmingyard
Copy link
Owner

@LeoLee96 Good job!

@defenceVT
Copy link

@LeoLee96 hi, i have trained a new model with the ConvolutionDepthwise layer you have provided, but the train time or inference time are pretty slow , i don't know what is the problem?

@GallonDeng
Copy link

hi, @farmingyard , I am trying to compile it with caffe and it shows the error "‘caffe_gpu_set’ was not declared in this scope" in conv_dw_layer.cpp. Any suggestions to solve the problem? Thx

@GallonDeng
Copy link

compile without GPU

@ElbertLi
Copy link

@AllenDun The problem solved ? I meet the same problem.

@jnulzl
Copy link

jnulzl commented May 9, 2018

@ElbertLi @AllenDun seeissues12

@ZPL95
Copy link

ZPL95 commented Aug 29, 2019

compile without GPU

have u solved this issue

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

7 participants