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

Method Forward_cpu

src/caffe/layers/absval_layer.cpp:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16template <typename Dtype>
17void AbsValLayer<Dtype>::Forward_cpu(
18 const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
19 const int count = top[0]->count();
20 Dtype* top_data = top[0]->mutable_cpu_data();
21 caffe_abs(count, bottom[0]->cpu_data(), top_data);
22}
23
24template <typename Dtype>
25void AbsValLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
mutable_cpu_dataMethod · 0.45
cpu_dataMethod · 0.45

Tested by

no test coverage detected