nndeploy C++ API  0.2.0
nndeploy C++ API
op_expand.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2025
3  * All rights reserved.
4  */
5 #ifndef _NNDEPLOY_OP_OP_EXPAND_H_
6 #define _NNDEPLOY_OP_OP_EXPAND_H_
7 
8 #include "nndeploy/ir/ir.h"
9 #include "nndeploy/op/op.h"
10 
11 namespace nndeploy {
12 namespace op {
13 
14 class OpExpand : public Op {
15  public:
16  OpExpand() : Op() {}
17  virtual ~OpExpand() {}
18 
20  virtual base::Status run();
21 };
22 
25  device::Tensor* output);
26 
27 } // namespace op
28 } // namespace nndeploy
29 
30 #endif // _NNDEPLOY_OP_OP_EXPAND_H_
31 
virtual base::Status inferShape()
形状推理
virtual base::Status run()
Op的基类
Definition: op.h:42
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status expand(device::Tensor *input, device::Tensor *shape, device::Tensor *output)
base::Status shape(device::Tensor *input, std::shared_ptr< ir::ShapeParam > param, device::Tensor *output)