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

Method SetUp

src/caffe/test/test_pooling_layer.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 blob_top_(new Blob<Dtype>()),
27 blob_top_mask_(new Blob<Dtype>()) {}
28 virtual void SetUp() {
29 Caffe::set_random_seed(1701);
30 blob_bottom_->Reshape(2, 3, 6, 5);
31 // fill the values
32 FillerParameter filler_param;
33 GaussianFiller<Dtype> filler(filler_param);
34 filler.Fill(this->blob_bottom_);
35 blob_bottom_vec_.push_back(blob_bottom_);
36 blob_top_vec_.push_back(blob_top_);
37 }
38 virtual ~PoolingLayerTest() {
39 delete blob_bottom_;
40 delete blob_top_;

Callers 7

TestForwardSquareMethod · 0.45
TestForwardRectHighMethod · 0.45
TestForwardRectWideMethod · 0.45
TYPED_TESTFunction · 0.45
TestForwardSquareMethod · 0.45
TestForwardRectHighMethod · 0.45
TestForwardRectWideMethod · 0.45

Calls 3

set_random_seedFunction · 0.85
ReshapeMethod · 0.45
FillMethod · 0.45

Tested by

no test coverage detected