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

Method Reshape

rtpose_wrapper/src/caffe/layers/eltwise_layer.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <typename Dtype>
31void EltwiseLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
32 const vector<Blob<Dtype>*>& top) {
33 for (int i = 1; i < bottom.size(); ++i) {
34 CHECK(bottom[i]->shape() == bottom[0]->shape());
35 }
36 top[0]->ReshapeLike(*bottom[0]);
37 // If max operation, we will initialize the vector index part.
38 if (this->layer_param_.eltwise_param().operation() ==
39 EltwiseParameter_EltwiseOp_MAX && top.size() == 1) {
40 max_idx_.Reshape(bottom[0]->shape());
41 }
42}
43
44template <typename Dtype>
45void EltwiseLayer<Dtype>::Forward_cpu(

Callers

nothing calls this directly

Calls 3

shapeMethod · 0.80
ReshapeLikeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected