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

Method Reshape

src/caffe/layers/cudnn_pooling_layer.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22template <typename Dtype>
23void CuDNNPoolingLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
24 const vector<Blob<Dtype>*>& top) {
25 PoolingLayer<Dtype>::Reshape(bottom, top);
26 cudnn::setTensor4dDesc<Dtype>(&bottom_desc_, bottom[0]->num(),
27 this->channels_, this->height_, this->width_);
28 cudnn::setTensor4dDesc<Dtype>(&top_desc_, bottom[0]->num(),
29 this->channels_, this->pooled_height_, this->pooled_width_);
30}
31
32template <typename Dtype>
33CuDNNPoolingLayer<Dtype>::~CuDNNPoolingLayer() {

Callers

nothing calls this directly

Calls 1

numMethod · 0.80

Tested by

no test coverage detected