| 22 | |
| 23 | template <typename Dtype> |
| 24 | void TileLayer<Dtype>::Forward_cpu( |
| 25 | const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { |
| 26 | const Dtype* bottom_data = bottom[0]->cpu_data(); |
| 27 | Dtype* top_data = top[0]->mutable_cpu_data(); |
| 28 | for (int i = 0; i < outer_dim_; ++i) { |
| 29 | for (int t = 0; t < tiles_; ++t) { |
| 30 | caffe_copy(inner_dim_, bottom_data, top_data); |
| 31 | top_data += inner_dim_; |
| 32 | } |
| 33 | bottom_data += inner_dim_; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | template <typename Dtype> |
| 38 | void TileLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top, |
nothing calls this directly
no test coverage detected