MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / Reshape

Method Reshape

rtpose_wrapper/src/caffe/cpm/layers/nms_layer.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16template <typename Dtype>
17void NmsLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top){
18 std::vector<int> bottom_shape = bottom[0]->shape();
19 std::vector<int> top_shape(bottom_shape);
20
21 top_shape[3] = 3; // X, Y, score
22 top_shape[2] = max_peaks_+1; // 10 people + 1
23 top_shape[1] = num_parts_;
24
25 top[0]->Reshape(top_shape);
26 workspace.Reshape(bottom_shape);
27
28 //std::cout << "cpu here!" << std::endl;
29}
30
31template <typename Dtype>
32void NmsLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top){

Callers

nothing calls this directly

Calls 1

shapeMethod · 0.80

Tested by

no test coverage detected