| 163 | |
| 164 | template <typename Dtype> |
| 165 | void 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 | |
| 179 | template <typename Dtype> |
| 180 | void LRNLayer<Dtype>::CrossChannelBackward_cpu( |
nothing calls this directly
no outgoing calls
no test coverage detected