happynear / happynear/caffe-windows

label_specific_add error

Open
#296 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.3k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

src/caffe/layers/label_specific_add.cpp:28:7: error: converting to ‘const std::vector’ from initializer list would use explicit constructor ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator]’
src/caffe/layers/label_specific_add.cpp: In instantiation of ‘void caffe::LabelSpecificAddLayer::Reshape(const std::vector*>&, const std::vector*>&) [with Dtype = double]’:
src/caffe/layers/label_specific_add.cpp:80:1: required from here
src/caffe/layers/label_specific_add.cpp:28:7: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
src/caffe/layers/label_specific_add.cpp:28:7: error: converting to ‘const std::vector’ from initializer list would use explicit constructor ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator]’
Makefile:575: recipe for target '.build_release/src/caffe/layers/label_specific_add.o' failed
make: *** [.build_release/src/caffe/layers/label_specific_add.o] Error 1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.