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

Method Backward_cpu

src/caffe/layers/lrn_layer.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164template <typename Dtype>
165void LRNLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,
166 const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) {
167 switch (this->layer_param_.lrn_param().norm_region()) {
168 case LRNParameter_NormRegion_ACROSS_CHANNELS:
169 CrossChannelBackward_cpu(top, propagate_down, bottom);
170 break;
171 case LRNParameter_NormRegion_WITHIN_CHANNEL:
172 WithinChannelBackward(top, propagate_down, bottom);
173 break;
174 default:
175 LOG(FATAL) << "Unknown normalization region.";
176 }
177}
178
179template <typename Dtype>
180void LRNLayer<Dtype>::CrossChannelBackward_cpu(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected