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