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

Method Reshape

src/caffe/layers/dropout_layer.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21template <typename Dtype>
22void DropoutLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
23 const vector<Blob<Dtype>*>& top) {
24 NeuronLayer<Dtype>::Reshape(bottom, top);
25 // Set up the cache for random number generation
26 // ReshapeLike does not work because rand_vec_ is of Dtype uint
27 rand_vec_.Reshape(bottom[0]->shape());
28}
29
30template <typename Dtype>
31void DropoutLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,

Callers

nothing calls this directly

Calls 1

shapeMethod · 0.80

Tested by

no test coverage detected