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

Method LayerSetUp

rtpose_wrapper/src/caffe/layers/base_data_layer.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20template <typename Dtype>
21void BaseDataLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
22 const vector<Blob<Dtype>*>& top) {
23 if (top.size() == 1) {
24 output_labels_ = false;
25 } else {
26 output_labels_ = true;
27 }
28 data_transformer_.reset(
29 new DataTransformer<Dtype>(transform_param_, this->phase_));
30 data_transformer_->InitRand();
31 // The subclasses should setup the size of bottom and top
32 DataLayerSetUp(bottom, top);
33}
34
35template <typename Dtype>
36BasePrefetchingDataLayer<Dtype>::BasePrefetchingDataLayer(

Callers

nothing calls this directly

Calls 5

InitRandMethod · 0.80
sizeMethod · 0.45
resetMethod · 0.45
mutable_cpu_dataMethod · 0.45
mutable_gpu_dataMethod · 0.45

Tested by

no test coverage detected