| 111 | |
| 112 | template <typename Dtype> |
| 113 | void CropLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom, |
| 114 | const vector<Blob<Dtype>*>& top) { |
| 115 | std::vector<int> indices(top[0]->num_axes(), 0); |
| 116 | const Dtype* bottom_data = bottom[0]->cpu_data(); |
| 117 | Dtype* top_data = top[0]->mutable_cpu_data(); |
| 118 | crop_copy(bottom, top, offsets, indices, 0, bottom_data, top_data, true); |
| 119 | } |
| 120 | |
| 121 | template <typename Dtype> |
| 122 | void CropLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top, |
nothing calls this directly
no test coverage detected