| 99 | |
| 100 | template <typename Dtype> |
| 101 | void DummyDataLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom, |
| 102 | const vector<Blob<Dtype>*>& top) { |
| 103 | for (int i = 0; i < top.size(); ++i) { |
| 104 | const int filler_id = (fillers_.size() > 1) ? i : 0; |
| 105 | if (refill_[filler_id]) { |
| 106 | fillers_[filler_id]->Fill(top[i]); |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | INSTANTIATE_CLASS(DummyDataLayer); |
| 112 | REGISTER_LAYER_CLASS(DummyData); |