Closed yypeng9468 closed 6 years ago
Hi, this swish_layer is by default not included in the caffe repository, thus the caffe.proto file we provided does not have this layer name, You must add it into caffe.proto by yourself if you want to keep this swish layer. Thanks
2018-08-08 11:28 GMT+02:00 yypeng9468 notifications@github.com:
Sorry for interrupting, but I met some problems when making caffe under the command "make all" , the errors are listed as follow.
/workspace/mnt/group/customization/pengyuyan/SaCNN- CrowdCounting-Tencent_Youtu/caffe/src/caffe/layers/swish_layer.cu(16): error: class "caffe::LayerParameter" has no member "swish_param" detected during instantiation of "void caffe::SwishLayer::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=float]" (52): here
/workspace/mnt/group/customization/pengyuyan/SaCNN- CrowdCounting-Tencent_Youtu/caffe/src/caffe/layers/swish_layer.cu(44): error: class "caffe::LayerParameter" has no member "swish_param" detected during instantiation of "void caffe::SwishLayer::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=float]" (52): here
/workspace/mnt/group/customization/pengyuyan/SaCNN- CrowdCounting-Tencent_Youtu/caffe/src/caffe/layers/swish_layer.cu(16): error: class "caffe::LayerParameter" has no member "swish_param" detected during instantiation of "void caffe::SwishLayer::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=double]" (52): here
/workspace/mnt/group/customization/pengyuyan/SaCNN- CrowdCounting-Tencent_Youtu/caffe/src/caffe/layers/swish_layer.cu(44): error: class "caffe::LayerParameter" has no member "swish_param" detected during instantiation of "void caffe::SwishLayer::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=double]" (52): here
4 errors detected in the compilation of "/tmp/tmpxft00001ce6 00000000-7_swish_layer.cpp1.ii". CMake Error at cuda_compile_generated_swish_layer.cu.o.cmake:266 (message): Error generating file /workspace/mnt/group/customization/pengyuyan/SaCNN- CrowdCounting-Tencent_Youtu/caffe/build/src/caffe/ CMakeFiles/cuda_compile.dir/layers/./cudacompile generated_swish_layer.cu.o
src/caffe/CMakeFiles/caffe.dir/build.make:483: recipe for target 'src/caffe/CMakeFiles/cudacompile.dir/layers/cuda compile_generated_swish_layer.cu.o' failed make[2]: [src/caffe/CMakeFiles/cudacompile.dir/layers/cuda compile_generated_swish_layer.cu.o] Error 1 CMakeFiles/Makefile2:304: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make[1]: [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
I'm on ubuntu16.04 with python2.7, cuda8.0 and cudnn6. Many thanks.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/miao0913/SaCNN-CrowdCounting-Tencent_Youtu/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/APmD0eCJ0KPQWoA-0tz9pUYatcUtxH40ks5uOq88gaJpZM4VzlXH .
-- Dr. Miaojing Shi Research Scientist LINKMEDIA - Inria Rennes Email: miaojing.shi@inria.fr CC: miao0913@gmail.com
Sorry for interrupting, but I met some problems when making caffe under the command "make all" , the errors are listed as follow.
/workspace/mnt/group/customization/pengyuyan/SaCNN-CrowdCounting-Tencent_Youtu/caffe/src/caffe/layers/swish_layer.cu(16): error: class "caffe::LayerParameter" has no member "swish_param" detected during instantiation of "void caffe::SwishLayer::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=float]"
(52): here
/workspace/mnt/group/customization/pengyuyan/SaCNN-CrowdCounting-Tencent_Youtu/caffe/src/caffe/layers/swish_layer.cu(44): error: class "caffe::LayerParameter" has no member "swish_param" detected during instantiation of "void caffe::SwishLayer::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=float]"
(52): here
/workspace/mnt/group/customization/pengyuyan/SaCNN-CrowdCounting-Tencent_Youtu/caffe/src/caffe/layers/swish_layer.cu(16): error: class "caffe::LayerParameter" has no member "swish_param" detected during instantiation of "void caffe::SwishLayer::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=double]"
(52): here
/workspace/mnt/group/customization/pengyuyan/SaCNN-CrowdCounting-Tencent_Youtu/caffe/src/caffe/layers/swish_layer.cu(44): error: class "caffe::LayerParameter" has no member "swish_param" detected during instantiation of "void caffe::SwishLayer::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=double]"
(52): here
4 errors detected in the compilation of "/tmp/tmpxft_00001ce6_00000000-7_swish_layer.cpp1.ii". CMake Error at cuda_compile_generated_swish_layer.cu.o.cmake:266 (message): Error generating file /workspace/mnt/group/customization/pengyuyan/SaCNN-CrowdCounting-Tencent_Youtu/caffe/build/src/caffe/CMakeFiles/cuda_compile.dir/layers/./cuda_compile_generated_swish_layer.cu.o
src/caffe/CMakeFiles/caffe.dir/build.make:483: recipe for target 'src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_swish_layer.cu.o' failed make[2]: [src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_swish_layer.cu.o] Error 1 CMakeFiles/Makefile2:304: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make[1]: [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
I'm on ubuntu16.04 with python2.7, cuda8.0 and cudnn6. Many thanks.