| 7 | |
| 8 | template <typename Dtype> |
| 9 | void SilenceLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top, |
| 10 | const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) { |
| 11 | for (int i = 0; i < bottom.size(); ++i) { |
| 12 | if (propagate_down[i]) { |
| 13 | caffe_set(bottom[i]->count(), Dtype(0), |
| 14 | bottom[i]->mutable_cpu_diff()); |
| 15 | } |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | #ifdef CPU_ONLY |
| 20 | STUB_GPU(SilenceLayer); |
nothing calls this directly
no test coverage detected