Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eric612 committed Mar 21, 2019
1 parent 3bbb4b7 commit ca3759a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/caffe/layers/yolov3_detection_output_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class Yolov3DetectionOutputLayer : public Layer<Dtype> {
const vector<Blob<Dtype>*>& top);
/// @brief Not implemented
virtual void Backward_cpu(const vector<Blob<Dtype>*>& top,
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) {return;};
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom);
virtual void Backward_gpu(const vector<Blob<Dtype>*>& top,
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) {return;};
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom);
int side_;
int num_class_;
int num_;
Expand Down
11 changes: 10 additions & 1 deletion src/caffe/layers/yolov3_detection_output_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,17 @@ void Yolov3DetectionOutputLayer<Dtype>::Forward_cpu(
}

}

template <typename Dtype>
void Yolov3DetectionOutputLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) {
return;
}
#ifdef CPU_ONLY
template <typename Dtype>
void Yolov3DetectionOutputLayer<Dtype>::Backward_gpu(const vector<Blob<Dtype>*>& top,
const vector<bool>& propagate_down, const vector<Blob<Dtype>*>& bottom) {
return;
}
STUB_GPU_FORWARD(Yolov3DetectionOutputLayer, Forward);
#endif

Expand Down

0 comments on commit ca3759a

Please sign in to comment.