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

Method Forward_cpu

src/caffe/layers/tile_layer.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template <typename Dtype>
24void 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
37template <typename Dtype>
38void TileLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,

Callers

nothing calls this directly

Calls 3

caffe_copyFunction · 0.85
cpu_dataMethod · 0.45
mutable_cpu_dataMethod · 0.45

Tested by

no test coverage detected