| 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_; |
no test coverage detected