nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
op
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
15
virtual
base::Status
inferShape
();
16
17
virtual
base::Status
run
();
18
};
19
20
NNDEPLOY_CC_API
base::Status
layerNorm
(
device::Tensor
*input,
21
device::Tensor
*weight,
22
device::Tensor
*bias,
23
std::shared_ptr<base::Param> param,
24
device::Tensor
*output);
25
26
NNDEPLOY_CC_API
base::Status
layerNorm
(
device::Tensor
*input,
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_
nndeploy::base::Status
Definition:
status.h:87
nndeploy::device::Tensor
Tensor类
Definition:
tensor.h:26
nndeploy::op::OpLayerNorm
Definition:
op_layernorm.h:10
nndeploy::op::OpLayerNorm::~OpLayerNorm
virtual ~OpLayerNorm()
Definition:
op_layernorm.h:13
nndeploy::op::OpLayerNorm::run
virtual base::Status run()
nndeploy::op::OpLayerNorm::inferShape
virtual base::Status inferShape()
形状推理
nndeploy::op::OpLayerNorm::OpLayerNorm
OpLayerNorm()
Definition:
op_layernorm.h:12
nndeploy::op::Op
Op的基类
Definition:
op.h:42
ir.h
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
nndeploy::op::layerNorm
base::Status layerNorm(device::Tensor *input, device::Tensor *weight, device::Tensor *bias, std::shared_ptr< base::Param > param, device::Tensor *output)
nndeploy
Definition:
common.h:10
op.h
Generated by
1.9.1