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