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

caffe make test and make runtest issues #12

Open
ruida opened this issue Nov 21, 2016 · 2 comments
Open

caffe make test and make runtest issues #12

ruida opened this issue Nov 21, 2016 · 2 comments

Comments

@ruida
Copy link

ruida commented Nov 21, 2016

I compile caffe code successfully. Encounter issues when I type

make test

/include/caffe/data_layers.hpp:280:8: note: candidate expects 4 arguments, 3 provided
src/caffe/test/test_memory_data_layer.cpp: In instantiation of ‘void caffe::MemoryDataLayerTest_TestForward_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = caffe::FloatCPU]’:
src/caffe/test/test_memory_data_layer.cpp:167:1: required from here
src/caffe/test/test_memory_data_layer.cpp:97:3: error: no matching function for call to ‘caffe::MemoryDataLayer::Reset(float*, float*, int)’
layer->Reset(this->data_->mutable_cpu_data(),
^
src/caffe/test/test_memory_data_layer.cpp:97:3: note: candidate is:
In file included from src/caffe/test/test_memory_data_layer.cpp:4:0:
./include/caffe/data_layers.hpp:280:8: note: void caffe::MemoryDataLayer::Reset(Dtype*, Dtype*, Dtype*, int) [with Dtype = float]
void Reset(Dtype* data, Dtype* label, Dtype* data_dim, int n); // Martin Kersner, 2016/04/19
^
./include/caffe/data_layers.hpp:280:8: note: candidate expects 4 arguments, 3 provided
make: *** [.build_release/src/caffe/test/test_memory_data_layer.o] Error 1

Will this affect the train-Deeplab running? thanks.

@ksnzh
Copy link

ksnzh commented Dec 19, 2016

Hi @ruida ,
I have compiled caffe successfully with cmake too and also encounter the same issue when make runtest.

/media/ksnzh/DATA/deeplab/train-DeepLab/code/src/caffe/test/test_memory_data_layer.cpp:97:3: note: candidate is:
In file included from /media/ksnzh/DATA/deeplab/train-DeepLab/code/src/caffe/test/test_memory_data_layer.cpp:4:0:
/media/ksnzh/DATA/deeplab/train-DeepLab/code/include/caffe/data_layers.hpp:280:8: note: void caffe::MemoryDataLayer<Dtype>::Reset(Dtype*, Dtype*, Dtype*, int) [with Dtype = float]
   void Reset(Dtype* data, Dtype* label, Dtype* data_dim, int n); // Martin Kersner, 2016/04/19
        ^
/media/ksnzh/DATA/deeplab/train-DeepLab/code/include/caffe/data_layers.hpp:280:8: note:   candidate expects 4 arguments, 3 provided
Scanning dependencies of target test_stochastic_pooling.testbin.obj
[ 25%] Building CXX object src/caffe/test/CMakeFiles/test_stochastic_pooling.testbin.obj.dir/test_stochastic_pooling.cpp.o
make[3]: *** [src/caffe/test/CMakeFiles/test_memory_data_layer.testbin.obj.dir/test_memory_data_layer.cpp.o] 错误 1
make[2]: *** [src/caffe/test/CMakeFiles/test_memory_data_layer.testbin.obj.dir/all] 错误 2
make[2]: *** 正在等待未完成的任务....

Another question, what is your cuDNN version?

@ABadCandy
Copy link

Hi~ I execute "make all" successfully but "make pycaffe" failed. Here is the error:

find: matlab/+caffe/private': No such file or directory make: *** No rule to make target include/caffe/layers/python_layer.hpp', needed by `python/c
affe/_caffe.so'. Stop.

It seems that there is not file in path "include/caffe/layers" compared to the original caffe version, how should i do? Thanks!

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