| 15 | |
| 16 | template <typename Dtype> |
| 17 | void 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 | |
| 24 | template <typename Dtype> |
| 25 | void AbsValLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top, |
nothing calls this directly
no test coverage detected