nndeploy C++ API  0.2.0
nndeploy C++ API
op_reshape.h
Go to the documentation of this file.
1 
2 #ifndef _NNDEPLOY_OP_OP_RESHAPE_H_
3 #define _NNDEPLOY_OP_OP_RESHAPE_H_
4 
5 #include "nndeploy/ir/ir.h"
6 #include "nndeploy/op/op.h"
7 
8 namespace nndeploy {
9 namespace op {
10 
11 class OpReshape : public Op {
12  public:
13  OpReshape() : Op() { is_inplace_ = true; }
14  virtual ~OpReshape() {}
15 
17 
19 
20  virtual base::Status run();
21 };
22 
24  std::shared_ptr<ir::ReshapeParam> param,
25  device::Tensor *output);
26 
27 } // namespace op
28 } // namespace nndeploy
29 
30 #endif
virtual base::Status inferDataFormat()
数据格式推理
virtual base::Status inferShape()
形状推理
virtual base::Status run()
Op的基类
Definition: op.h:42
bool is_inplace_
Definition: op.h:273
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status shape(device::Tensor *input, std::shared_ptr< ir::ShapeParam > param, device::Tensor *output)
base::Status reshape(device::Tensor *input, device::Tensor *shape, std::shared_ptr< ir::ReshapeParam > param, device::Tensor *output)