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

Method Reshape

src/caffe/layers/batch_reindex_layer.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8template<typename Dtype>
9void BatchReindexLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
10 const vector<Blob<Dtype>*>& top) {
11 CHECK_EQ(1, bottom[1]->num_axes());
12 vector<int> newshape;
13 newshape.push_back(bottom[1]->shape(0));
14 for (int i = 1; i < bottom[0]->shape().size(); ++i) {
15 newshape.push_back(bottom[0]->shape()[i]);
16 }
17 top[0]->Reshape(newshape);
18}
19
20template<typename Dtype>
21void BatchReindexLayer<Dtype>::check_batch_reindex(int initial_num,

Callers

nothing calls this directly

Calls 3

num_axesMethod · 0.80
shapeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected