2 #ifndef OPENPOSE_CORE_NMS_CAFFE_HPP
3 #define OPENPOSE_CORE_NMS_CAFFE_HPP
5 #include <caffe/blob.hpp>
18 virtual void LayerSetUp(
const std::vector<caffe::Blob<T>*>& bottom,
const std::vector<caffe::Blob<T>*>& top);
20 virtual void Reshape(
const std::vector<caffe::Blob<T>*>& bottom,
const std::vector<caffe::Blob<T>*>& top,
const int maxPeaks);
22 virtual inline const char* type()
const {
return "Nms"; }
24 void setThreshold(
const T threshold);
26 virtual void Forward_cpu(
const std::vector<caffe::Blob<T>*>& bottom,
const std::vector<caffe::Blob<T>*>& top);
28 virtual void Forward_gpu(
const std::vector<caffe::Blob<T>*>& bottom,
const std::vector<caffe::Blob<T>*>& top);
30 virtual void Backward_cpu(
const std::vector<caffe::Blob<T>*>& top,
const std::vector<bool>& propagate_down,
const std::vector<caffe::Blob<T>*>& bottom);
32 virtual void Backward_gpu(
const std::vector<caffe::Blob<T>*>& top,
const std::vector<bool>& propagate_down,
const std::vector<caffe::Blob<T>*>& bottom);
36 caffe::Blob<int> mKernelBlob;
37 std::array<int, 4> mBottomSize;
38 std::array<int, 4> mTopSize;
42 #endif // OPENPOSE_CORE_NMS_CAFFE_HPP
#define OP_API
Definition: macros.hpp:5