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

Method MaxTopBlobs

include/caffe/layers/pooling_layer.hpp:32–35  ·  view source on GitHub ↗

MAX POOL layers can output an extra top blob for the mask; others can only output the pooled inputs.

Source from the content-addressed store, hash-verified

30 // MAX POOL layers can output an extra top blob for the mask;
31 // others can only output the pooled inputs.
32 virtual inline int MaxTopBlobs() const {
33 return (this->layer_param_.pooling_param().pool() ==
34 PoolingParameter_PoolMethod_MAX) ? 2 : 1;
35 }
36
37 protected:
38 virtual void Forward_cpu(const vector<Blob<Dtype>*>& bottom,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected