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

Method Forward_cpu

src/caffe/layers/lrn_layer.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92template <typename Dtype>
93void LRNLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,
94 const vector<Blob<Dtype>*>& top) {
95 switch (this->layer_param_.lrn_param().norm_region()) {
96 case LRNParameter_NormRegion_ACROSS_CHANNELS:
97 CrossChannelForward_cpu(bottom, top);
98 break;
99 case LRNParameter_NormRegion_WITHIN_CHANNEL:
100 WithinChannelForward(bottom, top);
101 break;
102 default:
103 LOG(FATAL) << "Unknown normalization region.";
104 }
105}
106
107template <typename Dtype>
108void LRNLayer<Dtype>::CrossChannelForward_cpu(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected