OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
maximumCaffe.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CORE_MAXIMUM_CAFFE_HPP
2 #define OPENPOSE_CORE_MAXIMUM_CAFFE_HPP
3 
5 
6 namespace op
7 {
8  // It mostly follows the Caffe::layer implementation, so Caffe users can easily use it. However, in order to keep
9  // the compatibility with any generic Caffe version, we keep this 'layer' inside our library rather than in the
10  // Caffe code.
11  template <typename T>
13  {
14  public:
15  explicit MaximumCaffe();
16 
17  virtual void LayerSetUp(const std::vector<caffe::Blob<T>*>& bottom, const std::vector<caffe::Blob<T>*>& top);
18 
19  virtual void Reshape(const std::vector<caffe::Blob<T>*>& bottom, const std::vector<caffe::Blob<T>*>& top);
20 
21  virtual inline const char* type() const { return "Maximum"; }
22 
23  virtual void Forward_cpu(const std::vector<caffe::Blob<T>*>& bottom, const std::vector<caffe::Blob<T>*>& top);
24 
25  virtual void Forward_gpu(const std::vector<caffe::Blob<T>*>& bottom, const std::vector<caffe::Blob<T>*>& top);
26 
27  virtual void Backward_cpu(const std::vector<caffe::Blob<T>*>& top, const std::vector<bool>& propagate_down,
28  const std::vector<caffe::Blob<T>*>& bottom);
29 
30  virtual void Backward_gpu(const std::vector<caffe::Blob<T>*>& top, const std::vector<bool>& propagate_down,
31  const std::vector<caffe::Blob<T>*>& bottom);
32 
33  private:
34  std::array<int, 4> mBottomSize;
35  std::array<int, 4> mTopSize;
36  };
37 }
38 
39 #endif // OPENPOSE_CORE_MAXIMUM_CAFFE_HPP
Definition: maximumCaffe.hpp:12
virtual const char * type() const
Definition: maximumCaffe.hpp:21
Definition: macros.hpp:77
std::vector< T, Alloc > vector
Definition: cl2.hpp:567
#define OP_API
Definition: macros.hpp:15