nndeploy C++ API  0.2.0
nndeploy C++ API
op_layernorm.h
Go to the documentation of this file.
1 #ifndef _NNDEPLOY_OP_OP_LAYERNORM_H_
2 #define _NNDEPLOY_OP_OP_LAYERNORM_H_
3 
4 #include "nndeploy/ir/ir.h"
5 #include "nndeploy/op/op.h"
6 
7 namespace nndeploy {
8 namespace op {
9 
10 class OpLayerNorm : public Op {
11  public:
12  OpLayerNorm() : Op() {}
13  virtual ~OpLayerNorm() {}
14 
16 
17  virtual base::Status run();
18 };
19 
21  device::Tensor *weight,
22  device::Tensor *bias,
23  std::shared_ptr<base::Param> param,
24  device::Tensor *output);
25 
27  device::Tensor *weight,
28  std::shared_ptr<base::Param> param,
29  device::Tensor *output);
30 
31 } // namespace op
32 } // namespace nndeploy
33 
34 #endif // _NNDEPLOY_OP_OP_LAYERNORM_H_
virtual base::Status run()
virtual base::Status inferShape()
形状推理
Op的基类
Definition: op.h:42
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status layerNorm(device::Tensor *input, device::Tensor *weight, device::Tensor *bias, std::shared_ptr< base::Param > param, device::Tensor *output)