nndeploy C++ API  0.2.0
nndeploy C++ API
op_maxpool.h
Go to the documentation of this file.
1 
2 #ifndef _NNDEPLOY_OP_OP_MAXPOOL_H_
3 #define _NNDEPLOY_OP_OP_MAXPOOL_H_
4 
5 #include "nndeploy/ir/ir.h"
6 #include "nndeploy/op/op.h"
7 
8 namespace nndeploy {
9 
10 namespace op {
11 
12 class OpMaxPool : public Op {
13  public:
14  OpMaxPool() : Op() {}
15  virtual ~OpMaxPool() {}
16 
18 
19  virtual base::Status run();
20 };
21 
23  std::shared_ptr<ir::MaxPoolParam> param,
24  device::Tensor *output);
25 
26 } // namespace op
27 } // namespace nndeploy
28 
29 #endif
virtual base::Status run()
virtual base::Status inferShape()
形状推理
Op的基类
Definition: op.h:42
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status maxPool(device::Tensor *input, std::shared_ptr< ir::MaxPoolParam > param, device::Tensor *output)