nndeploy C++ API  0.2.0
nndeploy C++ API
op_swiglu.h
Go to the documentation of this file.
1 #ifndef _NNDEPLOY_OP_OP_SWIGLU_H_
2 #define _NNDEPLOY_OP_OP_SWIGLU_H_
3 
4 #include "nndeploy/ir/ir.h"
5 #include "nndeploy/op/op.h"
6 
7 namespace nndeploy {
8 namespace op {
9 
10 class OpSwiGLU : public Op {
11  public:
12  OpSwiGLU() : Op() { is_inplace_ = false; }
13  virtual ~OpSwiGLU() {}
14 
16 
17  virtual base::Status run();
18 };
19 
21  device::Tensor *output);
22 
24  device::Tensor *input2,
25  device::Tensor *output);
26 
27 } // namespace op
28 } // namespace nndeploy
29 
30 #endif // _NNDEPLOY_OP_OP_SWIGLU_H_
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 swiglu(device::Tensor *input, device::Tensor *output)