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

Method Backward_cpu

src/caffe/layers/silence_layer.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8template <typename Dtype>
9void 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
20STUB_GPU(SilenceLayer);

Callers

nothing calls this directly

Calls 4

caffe_setFunction · 0.85
countMethod · 0.80
mutable_cpu_diffMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected