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

Method Forward_cpu

src/caffe/layers/spp_layer.cpp:188–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187template <typename Dtype>
188void SPPLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,
189 const vector<Blob<Dtype>*>& top) {
190 if (pyramid_height_ == 1) {
191 pooling_layers_[0]->Forward(bottom, top);
192 return;
193 }
194 split_layer_->Forward(bottom, split_top_vec_);
195 for (int i = 0; i < pyramid_height_; i++) {
196 pooling_layers_[i]->Forward(
197 *pooling_bottom_vecs_[i], *pooling_top_vecs_[i]);
198 flatten_layers_[i]->Forward(
199 *pooling_top_vecs_[i], *flatten_top_vecs_[i]);
200 }
201 concat_layer_->Forward(concat_bottom_vec_, top);
202}
203
204template <typename Dtype>
205void SPPLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,

Callers

nothing calls this directly

Calls 1

ForwardMethod · 0.80

Tested by

no test coverage detected