nndeploy C++ API
0.2.0
nndeploy C++ API
framework
include
nndeploy
op
op_rmsnorm.h
Go to the documentation of this file.
1
#ifndef _NNDEPLOY_OP_OP_RMSNORM_H_
2
#define _NNDEPLOY_OP_OP_RMSNORM_H_
3
4
#include "
nndeploy/ir/ir.h
"
5
#include "
nndeploy/op/op.h
"
6
7
namespace
nndeploy
{
8
9
namespace
op {
10
11
class
OpRMSNorm
:
public
Op
{
12
public
:
13
OpRMSNorm
() :
Op
() {
is_inplace_
=
true
; }
14
virtual
~OpRMSNorm
() {}
15
16
virtual
base::Status
inferShape
();
17
18
virtual
base::Status
run
();
19
};
20
21
NNDEPLOY_CC_API
base::Status
rmsNorm
(
device::Tensor
*input,
22
device::Tensor
*weight,
23
std::shared_ptr<base::Param> param,
24
device::Tensor
*output);
25
26
}
// namespace op
27
}
// namespace nndeploy
28
#endif
nndeploy::base::Status
Definition:
status.h:87
nndeploy::device::Tensor
Tensor类
Definition:
tensor.h:26
nndeploy::op::OpRMSNorm
Definition:
op_rmsnorm.h:11
nndeploy::op::OpRMSNorm::run
virtual base::Status run()
nndeploy::op::OpRMSNorm::OpRMSNorm
OpRMSNorm()
Definition:
op_rmsnorm.h:13
nndeploy::op::OpRMSNorm::~OpRMSNorm
virtual ~OpRMSNorm()
Definition:
op_rmsnorm.h:14
nndeploy::op::OpRMSNorm::inferShape
virtual base::Status inferShape()
形状推理
nndeploy::op::Op
Op的基类
Definition:
op.h:42
nndeploy::op::Op::is_inplace_
bool is_inplace_
Definition:
op.h:273
ir.h
NNDEPLOY_CC_API
#define NNDEPLOY_CC_API
api
Definition:
macro.h:29
nndeploy::op::rmsNorm
base::Status rmsNorm(device::Tensor *input, device::Tensor *weight, std::shared_ptr< base::Param > param, device::Tensor *output)
nndeploy
Definition:
common.h:10
op.h
Generated by
1.9.1