2 #ifndef OPENPOSE_CORE_MAXIMUM_CAFFE_HPP
3 #define OPENPOSE_CORE_MAXIMUM_CAFFE_HPP
5 #include <caffe/blob.hpp>
16 explicit MaximumCaffe();
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);
22 virtual inline const char* type()
const {
return "Maximum"; }
24 virtual void Forward_cpu(
const std::vector<caffe::Blob<T>*>& bottom,
const std::vector<caffe::Blob<T>*>& top);
26 virtual void Forward_gpu(
const std::vector<caffe::Blob<T>*>& bottom,
const std::vector<caffe::Blob<T>*>& top);
28 virtual void Backward_cpu(
const std::vector<caffe::Blob<T>*>& top,
const std::vector<bool>& propagate_down,
const std::vector<caffe::Blob<T>*>& bottom);
30 virtual void Backward_gpu(
const std::vector<caffe::Blob<T>*>& top,
const std::vector<bool>& propagate_down,
const std::vector<caffe::Blob<T>*>& bottom);
33 std::array<int, 4> mBottomSize;
34 std::array<int, 4> mTopSize;
38 #endif // OPENPOSE_CORE_MAXIMUM_CAFFE_HPP
#define OP_API
Definition: macros.hpp:5