| 19 | |
| 20 | protected: |
| 21 | PowerLayerTest() |
| 22 | : blob_bottom_(new Blob<Dtype>(2, 3, 4, 5)), |
| 23 | blob_top_(new Blob<Dtype>()) { |
| 24 | Caffe::set_random_seed(1701); |
| 25 | // fill the values |
| 26 | FillerParameter filler_param; |
| 27 | GaussianFiller<Dtype> filler(filler_param); |
| 28 | filler.Fill(this->blob_bottom_); |
| 29 | blob_bottom_vec_.push_back(blob_bottom_); |
| 30 | blob_top_vec_.push_back(blob_top_); |
| 31 | } |
| 32 | virtual ~PowerLayerTest() { delete blob_bottom_; delete blob_top_; } |
| 33 | |
| 34 | void TestForward(Dtype power, Dtype scale, Dtype shift) { |
nothing calls this directly
no test coverage detected