MCPcopy Create free account
hub / github.com/BVLC/caffe / SetUp

Method SetUp

src/caffe/test/test_spp_layer.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 blob_bottom_3_(new Blob<Dtype>()),
29 blob_top_(new Blob<Dtype>()) {}
30 virtual void SetUp() {
31 Caffe::set_random_seed(1701);
32 blob_bottom_->Reshape(2, 3, 9, 8);
33 blob_bottom_2_->Reshape(4, 3, 1024, 765);
34 blob_bottom_3_->Reshape(10, 3, 7, 7);
35 // fill the values
36 FillerParameter filler_param;
37 GaussianFiller<Dtype> filler(filler_param);
38 filler.Fill(this->blob_bottom_);
39 blob_bottom_vec_.push_back(blob_bottom_);
40 blob_bottom_vec_2_.push_back(blob_bottom_2_);
41 blob_bottom_vec_3_.push_back(blob_bottom_3_);
42 blob_top_vec_.push_back(blob_top_);
43 }
44 virtual ~SPPLayerTest() { delete blob_bottom_; delete blob_top_; }
45
46 Blob<Dtype>* const blob_bottom_;

Callers 1

TYPED_TESTFunction · 0.45

Calls 3

set_random_seedFunction · 0.85
ReshapeMethod · 0.45
FillMethod · 0.45

Tested by

no test coverage detected