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

Method SetUp

src/caffe/test/test_memory_data_layer.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 data_blob_(new Blob<Dtype>()),
24 label_blob_(new Blob<Dtype>()) {}
25 virtual void SetUp() {
26 batch_size_ = 8;
27 batches_ = 12;
28 channels_ = 4;
29 height_ = 7;
30 width_ = 11;
31 blob_top_vec_.push_back(data_blob_);
32 blob_top_vec_.push_back(label_blob_);
33 // pick random input data
34 FillerParameter filler_param;
35 GaussianFiller<Dtype> filler(filler_param);
36 data_->Reshape(batches_ * batch_size_, channels_, height_, width_);
37 labels_->Reshape(batches_ * batch_size_, 1, 1, 1);
38 filler.Fill(this->data_);
39 filler.Fill(this->labels_);
40 }
41
42 virtual ~MemoryDataLayerTest() {
43 delete data_blob_;

Callers 1

TYPED_TESTFunction · 0.45

Calls 2

ReshapeMethod · 0.45
FillMethod · 0.45

Tested by

no test coverage detected