MCPcopy Create free account
hub / github.com/BVLC/caffe / Forward_cpu

Method Forward_cpu

src/caffe/layers/crop_layer.cpp:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112template <typename Dtype>
113void 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
121template <typename Dtype>
122void CropLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,

Callers

nothing calls this directly

Calls 3

num_axesMethod · 0.80
cpu_dataMethod · 0.45
mutable_cpu_dataMethod · 0.45

Tested by

no test coverage detected