OpenPose  1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
net.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CORE_NET_HPP
2 #define OPENPOSE_CORE_NET_HPP
3 
5 
6 namespace op
7 {
8  class OP_API Net
9  {
10  public:
11  virtual void initializationOnThread() = 0;
12 
13  // Alternative a) getInputDataCpuPtr or getInputDataGpuPtr + forwardPass()
14  virtual float* getInputDataCpuPtr() const = 0;
15 
16  virtual float* getInputDataGpuPtr() const = 0;
17 
18  // Alternative b)
19  virtual void forwardPass(const float* const inputData = nullptr) const = 0;
20  };
21 }
22 
23 #endif // OPENPOSE_CORE_NET_HPP
Definition: net.hpp:8
#define OP_API
Definition: macros.hpp:5