tonghe90 / textspotter

324 stars 112 forks source link

'class caffe::LayerParameter' has no member named 'at_param' #14

Closed sampathchanda closed 6 years ago

sampathchanda commented 6 years ago

Hello @tonghe90,

When trying to build your version of caffe, I am facing the following issue:

src/caffe/layers/at_layer.cpp: In instantiation of 'void caffe::AffineTransformerLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = float]':
src/caffe/layers/at_layer.cpp:107:1:   required from here
src/caffe/layers/at_layer.cpp:17:50: error: 'class caffe::LayerParameter' has no member named 'at_param'
  const auto &param = this->layer_param_.at_param();
                                                  ^
src/caffe/layers/at_layer.cpp: In instantiation of 'void caffe::AffineTransformerLayer<Dtype>::LayerSetUp(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&) [with Dtype = double]':
src/caffe/layers/at_layer.cpp:107:1:   required from here
src/caffe/layers/at_layer.cpp:17:50: error: 'class caffe::LayerParameter' has no member named 'at_param'
Makefile:581: recipe for target '.build_release/src/caffe/layers/at_layer.o' failed
make: *** [.build_release/src/caffe/layers/at_layer.o] Error 1

To fix some other errors earlier, I did add the following line to the Makefile.config: CUSTOM_CXX := g++ -std=c++11

Could you please help me fix this issue. Thanks!

tonghe90 commented 6 years ago

@sampathchanda Hi, can you copy this Makefile.config and make it?