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

Error test_roi_pooling_layer.cpp when running make test #180

Open
danzigjabalpur opened this issue Jul 20, 2018 · 1 comment
Open

Error test_roi_pooling_layer.cpp when running make test #180

danzigjabalpur opened this issue Jul 20, 2018 · 1 comment

Comments

@danzigjabalpur
Copy link

src/caffe/test/test_roi_pooling_layer.cpp:28:26: error: ‘FloatGPU’ was not declared in this scope
typedef ::testing::Types<FloatGPU, DoubleGPU> TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:36: error: ‘DoubleGPU’ was not declared in this scope
typedef ::testing::Types<FloatGPU, DoubleGPU> TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:45: error: template argument 1 is invalid
typedef ::testing::Types<FloatGPU, DoubleGPU> TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:45: error: template argument 2 is invalid
In file included from src/caffe/test/test_roi_pooling_layer.cpp:21:0:
./include/caffe/test/test_caffe_main.hpp: In instantiation of ‘class caffe::MultiDeviceTest’:
src/caffe/test/test_roi_pooling_layer.cpp:31:7: required from ‘class caffe::ROIPoolingLayerTest’
src/caffe/test/test_roi_pooling_layer.cpp:90:1: required from ‘class caffe::ROIPoolingLayerTest_TestGradient_Test’
./src/gtest/gtest.h:7334:28: required from ‘static bool testing::internal::TypeParameterizedTest<Fixture, TestSel, Types>::Register(const char*, const char*, const char*, int) [with Fixture = caffe::ROIPoolingLayerTest; TestSel = testing::internal::TemplateSelcaffe::ROIPoolingLayerTest_TestGradient_Test; Types = testing::internal::Types1]’
src/caffe/test/test_roi_pooling_layer.cpp:90:1: required from here
./include/caffe/test/test_caffe_main.hpp:33:37: error: ‘int’ is not a class, struct, or union type
typedef typename TypeParam::Dtype Dtype;
^
src/caffe/test/test_roi_pooling_layer.cpp: In instantiation of ‘class caffe::ROIPoolingLayerTest’:
src/caffe/test/test_roi_pooling_layer.cpp:90:1: required from ‘class caffe::ROIPoolingLayerTest_TestGradient_Test’
./src/gtest/gtest.h:7334:28: required from ‘static bool testing::internal::TypeParameterizedTest<Fixture, TestSel, Types>::Register(const char*, const char*, const char*, int) [with Fixture = caffe::ROIPoolingLayerTest; TestSel = testing::internal::TemplateSelcaffe::ROIPoolingLayerTest_TestGradient_Test; Types = testing::internal::Types1]’
src/caffe/test/test_roi_pooling_layer.cpp:90:1: required from here
src/caffe/test/test_roi_pooling_layer.cpp:32:37: error: ‘int’ is not a class, struct, or union type
typedef typename TypeParam::Dtype Dtype;
^
src/caffe/test/test_roi_pooling_layer.cpp:81:22: error: ‘int’ is not a class, struct, or union type
Blob* const blob_bottom_data_;
^
src/caffe/test/test_roi_pooling_layer.cpp:82:22: error: ‘int’ is not a class, struct, or union type
Blob* const blob_bottom_rois_;
^
src/caffe/test/test_roi_pooling_layer.cpp:83:22: error: ‘int’ is not a class, struct, or union type
Blob* const blob_top_data_;
^
src/caffe/test/test_roi_pooling_layer.cpp:84:24: error: ‘int’ is not a class, struct, or union type
vector<Blob> blob_bottom_vec_;
^
src/caffe/test/test_roi_pooling_layer.cpp:85:24: error: ‘int’ is not a class, struct, or union type
vector<Blob
> blob_top_vec_;
^
src/caffe/test/test_roi_pooling_layer.cpp: In instantiation of ‘caffe::ROIPoolingLayerTest::ROIPoolingLayerTest() [with TypeParam = int]’:
src/caffe/test/test_roi_pooling_layer.cpp:90:1: required from ‘testing::Test* testing::internal::TestFactoryImpl::CreateTest() [with TestClass = caffe::ROIPoolingLayerTest_TestGradient_Test]’
src/caffe/test/test_roi_pooling_layer.cpp:103:1: required from here
src/caffe/test/test_roi_pooling_layer.cpp:38:41: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_data_’
blob_top_data_(new Blob()) {
^
src/caffe/test/test_roi_pooling_layer.cpp:38:41: error: ‘int’ is not a class, struct, or union type
src/caffe/test/test_roi_pooling_layer.cpp:38:41: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
src/caffe/test/test_roi_pooling_layer.cpp:38:41: error: ‘int’ is not a class, struct, or union type
src/caffe/test/test_roi_pooling_layer.cpp:38:41: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_top_data_’
src/caffe/test/test_roi_pooling_layer.cpp:38:41: error: ‘int’ is not a class, struct, or union type
src/caffe/test/test_roi_pooling_layer.cpp:42:27: error: ‘int’ is not a class, struct, or union type
GaussianFiller filler(filler_param);
^
src/caffe/test/test_roi_pooling_layer.cpp:42:27: error: ‘int’ is not a class, struct, or union type
src/caffe/test/test_roi_pooling_layer.cpp:43:5: error: ‘class caffe::ROIPoolingLayerTest’ has no member named ‘blob_bottom_data_’
filler.Fill(this->blob_bottom_data_);
^
src/caffe/test/test_roi_pooling_layer.cpp:47:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_vec_’
blob_bottom_vec_.push_back(blob_bottom_data_);
^
src/caffe/test/test_roi_pooling_layer.cpp:47:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_data_’
src/caffe/test/test_roi_pooling_layer.cpp:49:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[0 + 5i] = 0; //caffe_rng_rand() % 4;
^
src/caffe/test/test_roi_pooling_layer.cpp:50:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[1 + 5
i] = 1; // x1 < 8
^
src/caffe/test/test_roi_pooling_layer.cpp:51:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[2 + 5i] = 1; // y1 < 12
^
src/caffe/test/test_roi_pooling_layer.cpp:52:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[3 + 5
i] = 6; // x2 < 8
^
src/caffe/test/test_roi_pooling_layer.cpp:53:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[4 + 5i] = 6; // y2 < 12
^
src/caffe/test/test_roi_pooling_layer.cpp:55:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[0 + 5
i] = 2;
^
src/caffe/test/test_roi_pooling_layer.cpp:56:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[1 + 5i] = 6; // x1 < 8
^
src/caffe/test/test_roi_pooling_layer.cpp:57:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[2 + 5
i] = 2; // y1 < 12
^
src/caffe/test/test_roi_pooling_layer.cpp:58:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[3 + 5i] = 7; // x2 < 8
^
src/caffe/test/test_roi_pooling_layer.cpp:59:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[4 + 5
i] = 11; // y2 < 12
^
src/caffe/test/test_roi_pooling_layer.cpp:61:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[0 + 5i] = 1;
^
src/caffe/test/test_roi_pooling_layer.cpp:62:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[1 + 5
i] = 3; // x1 < 8
^
src/caffe/test/test_roi_pooling_layer.cpp:63:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[2 + 5i] = 1; // y1 < 12
^
src/caffe/test/test_roi_pooling_layer.cpp:64:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[3 + 5
i] = 5; // x2 < 8
^
src/caffe/test/test_roi_pooling_layer.cpp:65:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[4 + 5i] = 10; // y2 < 12
^
src/caffe/test/test_roi_pooling_layer.cpp:67:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[0 + 5
i] = 0;
^
src/caffe/test/test_roi_pooling_layer.cpp:68:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[1 + 5i] = 3; // x1 < 8
^
src/caffe/test/test_roi_pooling_layer.cpp:69:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[2 + 5
i] = 3; // y1 < 12
^
src/caffe/test/test_roi_pooling_layer.cpp:70:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[3 + 5i] = 3; // x2 < 8
^
src/caffe/test/test_roi_pooling_layer.cpp:71:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
blob_bottom_rois_->mutable_cpu_data()[4 + 5
i] = 3; // y2 < 12
^
src/caffe/test/test_roi_pooling_layer.cpp:73:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_vec_’
blob_bottom_vec_.push_back(blob_bottom_rois_);
^
src/caffe/test/test_roi_pooling_layer.cpp:73:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
src/caffe/test/test_roi_pooling_layer.cpp:74:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_top_vec_’
blob_top_vec_.push_back(blob_top_data_);
^
src/caffe/test/test_roi_pooling_layer.cpp:74:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_top_data_’
src/caffe/test/test_roi_pooling_layer.cpp: In instantiation of ‘caffe::ROIPoolingLayerTest::~ROIPoolingLayerTest() [with TypeParam = int]’:
src/caffe/test/test_roi_pooling_layer.cpp:90:1: required from ‘testing::Test* testing::internal::TestFactoryImpl::CreateTest() [with TestClass = caffe::ROIPoolingLayerTest_TestGradient_Test]’
src/caffe/test/test_roi_pooling_layer.cpp:103:1: required from here
src/caffe/test/test_roi_pooling_layer.cpp:77:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_data_’
delete blob_bottom_data_;
^
src/caffe/test/test_roi_pooling_layer.cpp:78:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_bottom_rois_’
delete blob_bottom_rois_;
^
src/caffe/test/test_roi_pooling_layer.cpp:79:5: error: using invalid field ‘caffe::ROIPoolingLayerTest::blob_top_data_’
delete blob_top_data_;
^
src/caffe/test/test_roi_pooling_layer.cpp: In instantiation of ‘void caffe::ROIPoolingLayerTest_TestGradient_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = int]’:
src/caffe/test/test_roi_pooling_layer.cpp:103:1: required from here
src/caffe/test/test_roi_pooling_layer.cpp:91:37: error: ‘caffe::ROIPoolingLayerTest_TestGradient_Test::TypeParam {aka int}’ is not a class, struct, or union type
typedef typename TypeParam::Dtype Dtype;
^
src/caffe/test/test_roi_pooling_layer.cpp:97:26: error: ‘int’ is not a class, struct, or union type
ROIPoolingLayer layer(layer_param);
^
src/caffe/test/test_roi_pooling_layer.cpp:98:26: error: ‘int’ is not a class, struct, or union type
GradientChecker checker(1e-4, 1e-2);
^
src/caffe/test/test_roi_pooling_layer.cpp:98:26: error: ‘int’ is not a class, struct, or union type
src/caffe/test/test_roi_pooling_layer.cpp:97:26: error: ‘int’ is not a class, struct, or union type
ROIPoolingLayer layer(layer_param);
^
src/caffe/test/test_roi_pooling_layer.cpp:99:3: error: ‘class caffe::ROIPoolingLayerTest_TestGradient_Test’ has no member named ‘blob_bottom_vec_’
checker.CheckGradientExhaustive(&layer, this->blob_bottom_vec_,
^
src/caffe/test/test_roi_pooling_layer.cpp:99:3: error: ‘class caffe::ROIPoolingLayerTest_TestGradient_Test’ has no member named ‘blob_top_vec_’
Makefile:501: recipe for target '.build_release/src/caffe/test/test_roi_pooling_layer.o' failed

make: *** [.build_release/src/caffe/test/test_roi_pooling_layer.o] Error 1

I am compiling CPU version
my system is Ubuntu 16.04 on virtualbox
When I remove the test_roi_pooling_layer.cpp it compiles without error. I assume this is needed for fast-rcnn caffe so excluding it is not an option. Has anyone solved this issue before? thanks in advance

@danzigjabalpur danzigjabalpur changed the title Error when running make test Error test_roi_pooling_layer.cpp when running make test Jul 20, 2018
@fang151liu
Copy link

I have the same error

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

2 participants